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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [in] | read_buff | - The frame contents read from the host interface are populated to this buffer. |
Returns
0 - Success
Non-Zero value - Failure
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
rsi_frame_desc_t * | [in] | uFrameDscFrame | - 16 bytes host descriptor. |
uint8_t * | [in] | payloadparam | - buffer to the frame payload. |
uint16_t | [in] | size_param | - size of the payload. |
Returns
0 - Success
Negative value - Failure
rsi_sdio_iface_init#
int16_t rsi_sdio_iface_init (void )
Initialize the RS9116 SDIO secondary device interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | [in] |
Returns
0 - Success
Non-Zero Value - Failure
rsi_sdio_deinit#
void rsi_sdio_deinit (void )
This API deinitializes SDIO host interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | addr | - Device memory address. |
uint16_t | [in] | len | - Length of the buffer. |
uint8_t * | [in] | dBuf | - Data present in this buffer |
Returns
0 - Success
Non-Zero value - Failure
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | addr | - Device memory address. |
uint16_t | [in] | len | - Length of the buffer. |
uint8_t * | [in] | dBuf | - Destination buffer. |
Returns
0 - Success
Non-Zero value - Failure
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [in] | int_status | - Interrupt status. |
Returns
0 - Success
Non-zero value - Failure (Possible Error Codes - 0xffffffd0, )
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | [in] | regAddr | - Host interface. |
uint8_t * | [in] | dBuf | - Buffer. |
Returns
0 - Success
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.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | [in] | regAddr | - Destination address. |
uint8_t * | [in] | dBuf | - Buffer with the content to be written to the register. |
Returns
0 - Success