btnode/include/cm/con_event_buffer.h File Reference


Detailed Description

buffers conection table change events comming from btstack.

This file provides a mechanism to buffer connection-table-change-events from the btstack. This is needed since the callback call from the btstack should return as soon as possible, running on the high priority btstack thread. Further event handling is done in a seperate thread which calls con_event_listen().

#include <bt/bt_defs.h>

Functions

void con_event_buffer_init (struct btstack *bt_stack, HCI_CON_TABLE_CB_REGISTRATION)
 initializes the connection event buffer and registers itself to the btstack.
void con_event_buffer_register_con_table_cb (struct btstack *bt_stack, HCI_CON_TABLE_CB, void *cb_arg)
void con_event_listen (void)
 starts listening to connection table changes. This function adjusts the connection properties and calls the registered callback function.


Function Documentation

void con_event_buffer_init ( struct btstack bt_stack,
HCI_CON_TABLE_CB_REGISTRATION   
)

initializes the connection event buffer and registers itself to the btstack.

Parameters:
bt_stack pointer to the btstack.

void con_event_buffer_register_con_table_cb ( struct btstack bt_stack,
HCI_CON_TABLE_CB  ,
void *  cb_arg 
)

Registers external function cb, wich will be called on connection table changes. Function cb will run in the context of the thread which called con_event_listen().

void con_event_listen ( void   ) 

starts listening to connection table changes. This function adjusts the connection properties and calls the registered callback function.

Warning:
this function never returns!


Generated on Tue Jan 23 21:12:24 2007 for BTnut System Software by doxygen 1.4.7