Typedefs | |
typedef void( | wiced_bt_port_event_cback_t )(wiced_bt_rfcomm_port_event_t event, uint16_t port_handle) |
typedef void( | wiced_bt_port_mgmt_cback_t )(wiced_bt_rfcomm_result_t code, uint16_t port_handle) |
typedef int( | wiced_bt_rfcomm_data_cback_t )(uint16_t port_handle, void *p_data, uint16_t len) |
typedef enum wiced_bt_rfcomm_port_event_e | wiced_bt_rfcomm_port_event_t |
typedef int | wiced_bt_rfcomm_result_t |
typedef uint8_t | wiced_bt_rfcomm_signal_t |
Bluetooth RFCOMM Application Programming Interface
typedef void( wiced_bt_port_event_cback_t)(wiced_bt_rfcomm_port_event_t event, uint16_t port_handle) |
Port event callback
event | : A 32-bit event code that contains a bit-mask of one or more events the caller would like to register. |
port_handle | : Port handle from wiced_bt_rfcomm_create_connection . |
typedef void( wiced_bt_port_mgmt_cback_t)(wiced_bt_rfcomm_result_t code, uint16_t port_handle) |
Port management callback
code | : Result code |
port_handle | : Port handle from wiced_bt_rfcomm_create_connection . |
typedef int( wiced_bt_rfcomm_data_cback_t)(uint16_t port_handle, void *p_data, uint16_t len) |
Define the callback function prototypes for wiced_bt_rfcomm_data_cback_t
port_handle | : A 16-bit unsigned integer returned by wiced_bt_rfcomm_create_connection . |
*p_data | : A pointer to the array of bytes received from the peer device. |
len | : The length of the data received. |
typedef enum wiced_bt_rfcomm_port_event_e wiced_bt_rfcomm_port_event_t |
RFCOMM Port Event Masks
typedef int wiced_bt_rfcomm_result_t |
RFCOMM result code (see wiced_bt_rfcomm_result_e)
typedef uint8_t wiced_bt_rfcomm_signal_t |
RFCOMM Signals (see wiced_bt_rfcomm_signal_e)
RFCOMM Port Event Masks
RFCOMM Result Codes