UART#

Functions#

int16_t
rsi_frame_read(uint8_t *pkt_buffer)

Reads response for every command and data from the module.

int16_t
rsi_frame_write(rsi_frame_desc_t *uFrameDscFrame, uint8_t *payloadparam, uint16_t size_param)

Process a command to the wlan module.

int32_t

Initialize the UART interface of the module.

int32_t

De-initialize the UART interface of the module.

short int

Initialize the UART interface of the module.

void
uart_init(void)

Function Documentation#

rsi_frame_read#

int16_t rsi_frame_read (uint8_t * pkt_buffer)

Reads response for every command and data from the module.

Parameters
[in]pkt_buffer

- pointer to buffer to which packet has to read

This API reads the frame from the host interface.

Returns

  • 0 - Success


Definition at line 81 of file driver/device_interface/uart/rsi_uart.c

References RSI_SUCCESS , rsi_reg_rd , and memcpy

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.

Parameters
[in]uFrameDscFrame

- Frame descriptor

[in]payloadparam

- Pointer to the command payload parameter structure

[in]size_param

- Size of the payload for the command

This API writes the frame to the host interface.

Returns

  • 0 - SUCCESS
    < 0 - FAILURE


Definition at line 98 of file driver/device_interface/uart/rsi_uart.c

rsi_uart_init#

int32_t rsi_uart_init (void )

Initialize the UART interface of the module.

Parameters
[in]

Returns

  • 0 - Success
    Non-Zero Value - Failure


Definition at line 122 of file driver/device_interface/uart/rsi_uart.c

rsi_uart_deinit#

int32_t rsi_uart_deinit (void )

De-initialize the UART interface of the module.

Parameters
[in]

Returns

  • 0 - Success


Definition at line 181 of file driver/device_interface/uart/rsi_uart.c

USART0_RX_IRQHandler#

void USART0_RX_IRQHandler (void )
Parameters
N/A

Definition at line 186 of file driver/device_interface/uart/rsi_uart.c

rsi_uart_iface_int#

short int rsi_uart_iface_int (void )

Initialize the UART interface of the module.

Parameters
[in]

Returns

  • 0 - Success

  • Non-Zero value - Failure


Definition at line 225 of file driver/device_interface/uart/rsi_uart.c

uart_init#

void uart_init (void )
Parameters
N/A

Definition at line 306 of file driver/device_interface/uart/rsi_uart.c