SDIO#

Functions#

int16_t
rsi_frame_read(uint8_t *read_buff)

This API reads the frame from the host interface.

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.

int16_t

Initialize the RS9116 SDIO secondary device interface.

void

This API deinitializes SDIO host interface.

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.

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.

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.

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.

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.

Function Documentation#

rsi_frame_read#

int16_t rsi_frame_read (uint8_t * read_buff)

This API reads the frame from the host interface.

Parameters
TypeDirectionArgument NameDescription
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.

Parameters
TypeDirectionArgument NameDescription
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.

Parameters
TypeDirectionArgument NameDescription
void[in]

Returns

  • 0 - Success

  • Non-Zero Value - Failure


References RSI_SUCCESS , SL_PRINTF , and rsi_reg_wr

rsi_sdio_deinit#

void rsi_sdio_deinit (void )

This API deinitializes SDIO host interface.

Parameters
TypeDirectionArgument NameDescription
voidN/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.

Parameters
TypeDirectionArgument NameDescription
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.

Parameters
TypeDirectionArgument NameDescription
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.

Parameters
TypeDirectionArgument NameDescription
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.

Parameters
TypeDirectionArgument NameDescription
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.

Parameters
TypeDirectionArgument NameDescription
uint8_t[in]regAddr

- Destination address.

uint8_t *[in]dBuf

- Buffer with the content to be written to the register.

Returns

  • 0 - Success