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
[in]read_buff

- The frame contents read from the host interface are populated to this buffer.

Returns

  • 0 - Success

  • Non-Zero value - Failure


Definition at line 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.

Parameters
[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


Definition at line 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.

Parameters
[in]

Returns

  • 0 - Success

  • Non-Zero Value - Failure


Definition at line 53 of file driver/device_interface/sdio/rsi_sdio_iface_init.c

References RSI_SUCCESS , SL_PRINTF , and rsi_reg_wr

rsi_sdio_deinit#

void rsi_sdio_deinit (void)

This API deinitializes SDIO host interface.

Parameters
N/A

Definition at line 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.

Parameters
[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


Definition at line 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.

Parameters
[in]addr

- Device memory address.

[in]len

- Length of the buffer.

[in]dBuf

- Destination buffer.

Returns

  • 0 - Success

  • Non-Zero value - Failure


Definition at line 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.

Parameters
[in]int_status

- Interrupt status.

Returns

  • 0 - Success

  • Non-zero value - Failure (Possible Error Codes - 0xffffffd0, )


Definition at line 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.

Parameters
[in]regAddr

- Host interface.

[in]dBuf

- Buffer.

Returns

  • 0 - Success


Definition at line 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.

Parameters
[in]regAddr

- Destination address.

[in]dBuf

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

Returns

  • 0 - Success


Definition at line 61 of file driver/device_interface/sdio/rsi_sdio_reg_rd_wr.c