Infineon Logo AIROC BTSDK v4.7 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_transport.h File Reference

Defines the transport utilities for configuring the transport, send data and receive data. More...

Typedefs

typedef struct
_wiced_trans_buffer_pool_t 
wiced_transport_buffer_pool_t
 wiced transport buffer pool
 
typedef void(* wiced_transport_status_handler_t )(wiced_transport_type_t type)
 Wiced transport status handler.
 
typedef uint32_t(* wiced_tranport_data_handler_t )(uint8_t *p_data, uint32_t data_len)
 Wiced transport data handler Handles the data received over transport. More...
 
typedef void(* wiced_transport_tx_complete_t )(wiced_transport_buffer_pool_t *p_pool)
 Wiced transport tx complete indication. More...
 
struct {
   wiced_transport_uart_mode_t   mode
 UART mode, HCI or Raw.
 
   uint32_t   baud_rate
 UART baud rate.
 
wiced_uart_transport_cfg_t
 UART transport config.
 
struct {
   uint8_t   dev_role
 SPI HW to play either master (1) or slave (2)
 
   uint32_t   spi_gpio_cfg
 Pins to use for the data and clk lines. More...
 
   uint16_t   spi_pin_pull_config
 Pin pull-up or pull-down.
 
   uint32_t   clock_speed
 Clock speed (non-zero for master, zero for slave). More...
 
   SPI_ENDIAN   endian
 Direction of bit data flow (MSB or LSB first)
 
   SPI_SS_POLARITY   polarity
 Active high or active low for chip select line.
 
   SPI_MODE   mode
 SPI mode (0-3). More...
 
   uint8_t   cs_pin
 GPIO pin of chip select line.
 
   uint8_t   slave_ready_pin
 GPIO pin to be used as slave ready.
 
wiced_spi_transport_cfg_t
 SPI transport config.
 
union {
   wiced_spi_transport_cfg_t   spi_cfg
 
   wiced_uart_transport_cfg_t   uart_cfg
 
wiced_transport_interface_cfg_t
 Wiced transport interface config.
 
struct {
   uint32_t   buffer_size
 
   uint32_t   buffer_count
 
wiced_transport_rx_buff_pool_cfg_t
 Wiced receive buffer pool configuration. More...
 
struct {
   wiced_transport_type_t   type
 Wiced transport type. More...
 
   wiced_transport_interface_cfg_t   cfg
 Wiced transport interface config. More...
 
   wiced_transport_rx_buff_pool_cfg_t   rx_buff_pool_cfg
 Wiced rx buffer pool config. More...
 
   wiced_transport_status_handler_t   p_status_handler
 Wiced transport status handler. More...
 
   wiced_tranport_data_handler_t   p_data_handler
 Wiced transport receive data handler. More...
 
   wiced_transport_tx_complete_t   p_tx_complete_cback
 Wiced transport tx complete callback. More...
 
wiced_transport_cfg_t
 Wiced transport config.
 

Enumerations

enum  wiced_transport_type_t { WICED_TRANSPORT_UART, WICED_TRANSPORT_SPI, WICED_TRANSPORT_UNDEFINED }
 Wiced transport types. More...
 
enum  wiced_transport_uart_mode_t { WICED_TRANSPORT_UART_HCI_MODE, WICED_TRANSPORT_UART_RAW_MODE }
 Wiced uart transport mode. More...
 

Functions

wiced_result_t wiced_transport_init (const wiced_transport_cfg_t *p_cfg)
 Function wiced_transport_init. More...
 
wiced_transport_buffer_pool_twiced_transport_create_buffer_pool (uint32_t buffer_size, uint32_t buffer_count)
 Function wiced_transport_create_buffer_pool. More...
 
void * wiced_transport_allocate_buffer (wiced_transport_buffer_pool_t *p_pool)
 Function wiced_transport_allocate_buffer. More...
 
uint32_t wiced_transport_get_buffer_size (wiced_transport_buffer_pool_t *p_pool)
 Function wiced_transport_get_buffer_size. More...
 
uint32_t wiced_transport_get_buffer_count (wiced_transport_buffer_pool_t *p_pool)
 Function wiced_transport_get_buffer_count. More...
 
wiced_result_t wiced_transport_send_buffer (uint16_t code, uint8_t *p_buf, uint16_t length)
 Function wiced_transport_send_buffer. More...
 
void wiced_transport_free_buffer (void *p_buf)
 Function wiced_transport_free_buffer. More...
 
wiced_result_t wiced_transport_send_data (uint16_t code, uint8_t *p_data, uint16_t length)
 Function wiced_transport_send_data. More...
 
wiced_result_t wiced_transport_send_hci_trace (wiced_transport_buffer_pool_t *hci_trans_pool, wiced_bt_hci_trace_type_t type, uint16_t length, uint8_t *p_data)
 Function wiced_transport_send_hci_trace. More...
 

Detailed Description

Defines the transport utilities for configuring the transport, send data and receive data.

Variable Documentation

Wiced transport interface config.

uint32_t clock_speed

Clock speed (non-zero for master, zero for slave).

SPI_MODE mode

UART mode, HCI or Raw.

SPI mode (0-3).

Wiced transport receive data handler.

Wiced transport status handler.

wiced_transport_tx_complete_t p_tx_complete_cback

Wiced transport tx complete callback.

Wiced rx buffer pool config.

uint32_t spi_gpio_cfg

Pins to use for the data and clk lines.

Refer spiffdriver.h for details

Wiced transport type.