AIROC™ BTSDK v4.4 - Documentation | ||||
Wiced BT Stack Platform. More...
Data Fields | |
pf_wiced_exception | pf_exception |
Exception callback. | |
void *(* | pf_os_malloc )(uint32_t size) |
Platform function to allocate memory. More... | |
void(* | pf_os_free )(void *p_mem) |
Platform memory free. More... | |
uint64_t(* | pf_get_tick_count_64 )(void) |
Platform function to get tick count. More... | |
void(* | pf_set_next_timeout )(uint64_t abs_tick_count) |
Platform function to set the next timeout. More... | |
wiced_bt_lock_t | stack_lock |
Stack lock. | |
uint8_t *(* | pf_get_acl_to_lower_buffer )(wiced_bt_transport_t transport, uint32_t size) |
Platform function to get ACL buffer to send to lower. More... | |
wiced_result_t(* | pf_write_acl_to_lower )(wiced_bt_transport_t transport, uint8_t *p_data, uint16_t len) |
Platform function to write ACL buffer to lower. More... | |
wiced_result_t(* | pf_write_iso_to_lower )(uint8_t *p_data, uint16_t len) |
Platform function to write ISO buffer to lower. More... | |
wiced_result_t(* | pf_write_cmd_to_lower )(uint8_t *p_cmd, uint16_t cmd_len) |
Platform function to write CMD buffer to lower. More... | |
uint8_t *(* | pf_get_sco_to_lower_buffer )(uint32_t size) |
Platform function to get SCO buffer to send to lower. More... | |
wiced_result_t(* | pf_write_sco_to_lower )(uint8_t *p_sco_data, uint8_t len) |
Platform function to write SCO buffer to lower. More... | |
void(* | pf_hci_trace_cback_t )(wiced_bt_hci_trace_type_t type, uint16_t len, uint8_t *p_data) |
Callback function to trace HCI messages. More... | |
void(* | pf_debug_trace )(char *p_trace_buf, int trace_buf_len, wiced_bt_trace_type_t trace_type) |
Callback function to dump out trace messages This interface function can be NULL if no debug tracing is supported. More... | |
int | trace_buffer_len |
trace_buffer_len : Trace buffer len | |
char * | trace_buffer |
trace_buffer : Pointer to the trace buffer Applications can set this to NULL to disable traces | |
void(* | pf_patch_download )(void) |
Used for additional controller initialization by the porting layer to be performed after the HCI reset. More... | |
uint32_t | is_legacy_bless_controller: 1 |
set is_legacy_bless_controller to 1 for only BLESS controllers. More... | |
Wiced BT Stack Platform.
uint32_t is_legacy_bless_controller |
set is_legacy_bless_controller to 1 for only BLESS controllers.
This is used while sending BLESS vendor specific commands.
void(* pf_debug_trace)(char *p_trace_buf, int trace_buf_len, wiced_bt_trace_type_t trace_type) |
Callback function to dump out trace messages This interface function can be NULL if no debug tracing is supported.
Called by stack to allow application to write debug trace messages
[in] | p_trace_buf | : Pointer to the trace buffer |
[in] | trace_buf_len | : Length of the trace buffer |
[in] | trace_type | : Type of trace message |
uint8_t*(* pf_get_acl_to_lower_buffer)(wiced_bt_transport_t transport, uint32_t size) |
Platform function to get ACL buffer to send to lower.
Called by stack to get a buffer to fill in the data to be sent to 'transport' (BLE or BR/EDR) of 'size'
[in] | transport | : Transport on which the buffer is to be sent |
[in] | size | : Size of the buffer |
uint8_t*(* pf_get_sco_to_lower_buffer)(uint32_t size) |
Platform function to get SCO buffer to send to lower.
Called by stack to get a SCO buffer to fill in the data to be sent to HCI of 'size'
[in] | size | : Size of the buffer |
uint64_t(* pf_get_tick_count_64)(void) |
Platform function to get tick count.
Called by stack timer code to get the free running 64 bit tick count
[in] | None |
void(* pf_hci_trace_cback_t)(wiced_bt_hci_trace_type_t type, uint16_t len, uint8_t *p_data) |
Callback function to trace HCI messages.
Called by stack to allow application to trace the HCI messages. Application/Porting code is expected to treat received data as read only, and make a copy of the data to reference it outside of the callback
[in] | type | : HCI event data type |
[in] | len | : Length of data at p_data |
[in] | p_data | : Pointer to data |
void(* pf_os_free)(void *p_mem) |
Platform memory free.
Called by stack code to free memory back to the OS/Platform. Implementing function is expected to free the memory allocated using pf_os_malloc (refer pf_os_malloc ) call from the OS/Platform
[in] | p_mem | : Ptr to memory to be freed |
void*(* pf_os_malloc)(uint32_t size) |
Platform function to allocate memory.
Called by stack code to allocate memory from the OS/Platform. Implementing function is expected to return memory allocated from the OS/Platform
[in] | size | : Size of memory to be allocated |
void(* pf_patch_download)(void) |
Used for additional controller initialization by the porting layer to be performed after the HCI reset.
Can be set to NULL if no additional initialization required
void(* pf_set_next_timeout)(uint64_t abs_tick_count) |
Platform function to set the next timeout.
Called by stack timer code set the next timeout
[in] | abs_tick_count | : 64 bit tick count instant at which the timeout has to occur |
wiced_result_t(* pf_write_acl_to_lower)(wiced_bt_transport_t transport, uint8_t *p_data, uint16_t len) |
Platform function to write ACL buffer to lower.
Called by stack to send the buffer allocated using pf_get_acl_to_lower_buffer after filling it with the data to send.
[in] | transport | : Transport on which the buffer is to be sent |
[in] | p_data | : Pointer received using pf_get_acl_to_lower_buffer |
[in] | len | : Length of data at p_data |
wiced_result_t(* pf_write_cmd_to_lower)(uint8_t *p_cmd, uint16_t cmd_len) |
Platform function to write CMD buffer to lower.
Called by stack to send HCI CMD buffer to lower
[in] | p_cmd | : Pointer to HCI CMD data |
[in] | cmd_len | : Length of data at p_cmd |
wiced_result_t(* pf_write_iso_to_lower)(uint8_t *p_data, uint16_t len) |
Platform function to write ISO buffer to lower.
Called by stack to send the buffer allocated using pf_get_acl_to_lower_buffer after filling it with the data to send.
[in] | p_data | : Pointer received using pf_get_acl_to_lower_buffer |
[in] | len | : Length of data at p_data |
wiced_result_t(* pf_write_sco_to_lower)(uint8_t *p_sco_data, uint8_t len) |
Platform function to write SCO buffer to lower.
Called to send SCO CMD buffer to lower
[in] | p_sco_data | : Pointer to SCO data |
[in] | len | : Length of data at p_data |