| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
SDIO driver
Peripheral drivers

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