btnut/btnode/include/cm/_con_mgr.h File Reference


Detailed Description

Interface to develop connection managers.

Author:
Kevin Martin <kevmarti@tik.ee.ethz.ch>
Date:
2006/03/23
Write your own implementation of a connection manager against the interface defined in this file: write implementations of the functions defined here, and register them at the connection manager stack during initialization.

See also:
cm_tree.h

cm_tree.c

as an example.

#include <stdbool.h>
#include <bt/bt_defs.h>

Data Structures

struct  con_mgr_stack_s
 Definition of the connection manager stack. More...

Defines

#define CM_FILL_CON_INFO   short (*cm_fill_con_info) (u_char* args, u_char* param)
#define CM_GET_INFO   char* (*cm_get_info) (void)
#define CM_GET_REL_CONS   u_char (*cm_get_rel_cons)(bt_hci_con_handle_t *rel_cons)
#define CM_INQ_DISABLE   void (*cm_inq_disable) (void)
 Disables BT inquiries. Blocks if an inquiry is already in progress.
#define CM_INQ_ENABLE   void (*cm_inq_enable) (void)
 Reenables BT inquiries.
#define CM_INQ_SET_PERIOD   void (*cm_inq_set_period) (u_short val)
 Sets inquiry period.
#define CM_REGISTER_CMDS   void (*cm_reg_cmds) (void)
 Registers terminal commands of the connection manager. Call this function if you need the debug and control commands of the connection manager.
#define CM_RESET   void (*cm_reset) (void)
 Resets the connection manager.

Typedefs

typedef con_mgr_stack_s con_mgr_stack_t
 Definition of the connection manager stack.

Variables

con_mgr_stack_t con_mgr_stack
 The connection manager stack.


Generated on Wed Apr 29 11:12:29 2009 for BTnut System Software by doxygen 1.5.1
!!! Dieses Dokument stammt aus dem ETH Web-Archiv und wird nicht mehr gepflegt !!!
!!! This document is stored in the ETH Web archive and is no longer maintained !!!