Waveshare NRF52840 User Manual page 34

Eval kit
Table of Contents

Advertisement

NRF52840 Eval Kit User Manual
{
int8_t
rslt
= 0;
*/
/*
* The parameter dev_id can be used as a variable to store the
I2C address of the device
*/
/*
* Data on the bus should be like
* |------------+---------------------|
* | I2C action | Data
* |------------+---------------------|
* | Start
* | Write
* | Stop
* | Start
* | Read
* | Read
* | Read
* | Stop
* |------------+---------------------|
*/
return
rslt;
}
int8_t user_i2c_write(uint8_t
*reg_data,
uint16_t
{
int8_t
rslt
= 0;
*/
/*
* The parameter dev_id can be used as a variable to store the
I2C address of the device
*/
/*
* Data on the bus should be like
* |------------+---------------------|
* | I2C action | Data
* |------------+---------------------|
* | Start
* | Write
* | Write
* | Write
* | Write
* | Stop
Vision: V1.0.1 Date: 2019.01.19
/* Return 0 for Success, non-zero for failure
| -
| (reg_addr)
| -
| -
| (reg_data[0])
| (....)
| (reg_data[len - 1]) |
| -
dev_id,
len)
/* Return 0 for Success, non-zero for failure
| -
| (reg_addr)
| (reg_data[0])
| (....)
| (reg_data[len - 1]) |
| -
|
|
|
|
|
|
|
|
uint8_t
reg_addr,
|
|
|
|
|
|
uint8_t
34 / 72

Advertisement

Table of Contents
loading

Table of Contents