UART#
Functions#
Reads response for every command and data from the module.
Process a command to the wlan module.
Initialize the UART interface module.
UART de-initialization.
Function Documentation#
rsi_frame_read#
int16_t rsi_frame_read (uint8_t * pkt_buffer)
Reads response for every command and data from the module.
[in] | pkt_buffer | - pointer to buffer to which packet has to read |
Returns
0 - SUCCESS < 0 - FAILURE -1 - SPI busy / Timeout in case of SPI -2 - SPI Failure in case of SPI
Note
Enable DEBUG_PACKET_EXCHANGE macro for spi level packet exchange debug prints and MAX_PRINT_PAYLOAD_LEN for configuring no.bytes of payload to print, by default it will print 8 bytes of payload.
58
of file driver/device_interface/uart/rsi_uart.c
rsi_frame_write#
int16_t rsi_frame_write (rsi_frame_desc_t * uFrameDscFrame, uint8_t * payloadparam, uint16_t size_param)
Process a command to the wlan module.
[in] | uFrameDscFrame | - Frame descriptor |
[in] | payloadparam | - Pointer to the command payload parameter structure |
[in] | size_param | - Size of the payload for the command |
Returns
0 - SUCCESS < 0 - FAILURE -1 - SPI busy / Timeout in case of SPI -2 - SPI Failure in case of SPI
Note
Enable DEBUG_PACKET_EXCHANGE macro for spi level packet exchange debug prints and MAX_PRINT_PAYLOAD_LEN for configuring no.bytes of payload to print, by default it will print 8 bytes of payload..
69
of file driver/device_interface/uart/rsi_uart.c
rsi_uart_init#
int32_t rsi_uart_init (void )
Initialize the UART interface module.
[in] |
Returns
0 - Success Negative Value - Failure
90
of file driver/device_interface/uart/rsi_uart.c
rsi_uart_deinit#
int32_t rsi_uart_deinit (void )
UART de-initialization.
[in] |
Returns
0 - Success Negative Value - Failure
113
of file driver/device_interface/uart/rsi_uart.c