nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

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_bufferBuffer location to store read bytes to
target_buffer_sizeBytes 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
addressRegister 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
addressRegister address to write to
data_byteData byte to write