SDIO#
Functions#
This API reads the frame from the host interface.
This API writes the frame to the host interface.
Initialize the RS9116 SDIO secondary device interface.
This API deinitializes SDIO host interface.
This API writes contents of dBuf buffer to the device memory address addr for the length len.
This API reads the device memory contents present at the address addr into the dBuf buffer for the length len.
This API reads the status register of the host interface layer to validate the interrupt received.
This API reads the content of the host interface register regAddr to the buffer dBuf.
This API writes the content provided by dBuf to the host interface register regAddr.
Function Documentation#
rsi_frame_read#
int16_t rsi_frame_read (uint8_t * read_buff)
This API reads the frame from the host interface.
[in] | read_buff | - The frame contents read from the host interface are populated to this buffer. |
Returns
0 - Success
Non-Zero value - Failure
53
of file driver/device_interface/sdio/rsi_sdio_frame_rd_wr.c
rsi_frame_write#
int16_t rsi_frame_write (rsi_frame_desc_t * uFrameDscFrame, uint8_t * payloadparam, uint16_t size_param)
This API writes the frame to the host interface.
[in] | uFrameDscFrame | - 16 bytes host descriptor. |
[in] | payloadparam | - buffer to the frame payload. |
[in] | size_param | - size of the payload. |
Returns
0 - Success
Negative value - Failure
85
of file driver/device_interface/sdio/rsi_sdio_frame_rd_wr.c
rsi_sdio_iface_init#
int16_t rsi_sdio_iface_init (void )
Initialize the RS9116 SDIO secondary device interface.
[in] |
Returns
0 - Success
Non-Zero Value - Failure
53
of file driver/device_interface/sdio/rsi_sdio_iface_init.c
rsi_sdio_deinit#
void rsi_sdio_deinit (void )
This API deinitializes SDIO host interface.
N/A |
108
of file driver/device_interface/sdio/rsi_sdio_iface_init.c
rsi_mem_wr#
int16_t rsi_mem_wr (uint32_t addr, uint16_t len, uint8_t * dBuf)
This API writes contents of dBuf buffer to the device memory address addr for the length len.
[in] | addr | - Device memory address. |
[in] | len | - Length of the buffer. |
[in] | dBuf | - Data present in this buffer |
Returns
0 - Success
Non-Zero value - Failure
51
of file driver/device_interface/sdio/rsi_sdio_mem_rd_wr.c
rsi_mem_rd#
int16_t rsi_mem_rd (uint32_t addr, uint16_t len, uint8_t * dBuf)
This API reads the device memory contents present at the address addr into the dBuf buffer for the length len.
[in] | addr | - Device memory address. |
[in] | len | - Length of the buffer. |
[in] | dBuf | - Destination buffer. |
Returns
0 - Success
Non-Zero value - Failure
91
of file driver/device_interface/sdio/rsi_sdio_mem_rd_wr.c
rsi_device_interrupt_status#
int16_t rsi_device_interrupt_status (uint8_t * int_status)
This API reads the status register of the host interface layer to validate the interrupt received.
[in] | int_status | - Interrupt status. |
Returns
0 - Success
Non-zero value - Failure (Possible Error Codes - 0xffffffd0, )
119
of file driver/device_interface/sdio/rsi_sdio_mem_rd_wr.c
rsi_reg_rd#
int16_t rsi_reg_rd (uint8_t regAddr, uint8_t * dBuf)
This API reads the content of the host interface register regAddr to the buffer dBuf.
[in] | regAddr | - Host interface. |
[in] | dBuf | - Buffer. |
Returns
0 - Success
48
of file driver/device_interface/sdio/rsi_sdio_reg_rd_wr.c
rsi_reg_wr#
int16_t rsi_reg_wr (uint8_t regAddr, uint8_t * dBuf)
This API writes the content provided by dBuf to the host interface register regAddr.
[in] | regAddr | - Destination address. |
[in] | dBuf | - Buffer with the content to be written to the register. |
Returns
0 - Success
61
of file driver/device_interface/sdio/rsi_sdio_reg_rd_wr.c