SDIO driver

nRF5 SDK v12.2.0

2-wire serial interface driver. More...

Functions

void sdio_init (void)
Function for initializing 2-wire serial interface and trying to handle stuck slaves.
uint8_t sdio_read_byte (uint8_t address)
Function for reading a byte over 2-wire serial interface. More...
void sdio_read_burst (uint8_t *target_buffer, uint8_t target_buffer_size)
Function for reading several bytes over 2-wire serial interface using burst mode. More...
void sdio_write_byte (uint8_t address, uint8_t data_byte)
Function for writing a byte over 2-wire serial interface. More...

Detailed Description

2-wire serial interface driver.

Function Documentation

void sdio_read_burst ( uint8_t * target_buffer ,
uint8_t target_buffer_size
)

Function for reading several bytes over 2-wire serial interface using burst mode.

Developer needs to implement this function in a way that suits the hardware.

Parameters
target_buffer Buffer location to store read bytes to
target_buffer_size Bytes allocated for target_buffer
uint8_t sdio_read_byte ( uint8_t address )

Function for reading a byte over 2-wire serial interface.

Developer needs to implement this function in a way that suits the hardware.

Parameters
address Register address to read from
Returns
Byte read
void sdio_write_byte ( uint8_t address ,
uint8_t data_byte
)

Function for writing a byte over 2-wire serial interface.

Developer needs to implement this function in a way that suits the hardware.

Parameters
address Register address to write to
data_byte Data byte to write