nRF51 SDK - S110 SoftDevice
|
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... | |
2-wire serial interface driver.
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.
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.
address | Register address to read from |
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.
address | Register address to write to |
data_byte | Data byte to write |