test sending sensor results over lora radio. Accelerometer and temp/pressure.

Dependencies:   SX127x

Embed: (wiki syntax)

« Back to documentation index

IO

Modules

 Private variables
 Public functions
 Private functions
 Public constants
 Public function prototypes

Functions

uint8_t Sensor_IO_Write (void *handle, uint8_t WriteAddr, uint8_t *pBuffer, uint16_t nBytesToWrite)
 Writes a buffer to the sensor.
uint8_t Sensor_IO_Read (void *handle, uint8_t ReadAddr, uint8_t *pBuffer, uint16_t nBytesToRead)
 Reads a from the sensor to buffer.

Function Documentation

uint8_t Sensor_IO_Read ( void *  handle,
uint8_t  ReadAddr,
uint8_t *  pBuffer,
uint16_t  nBytesToRead 
)

Reads a from the sensor to buffer.

Parameters:
handleinstance handle
ReadAddrspecifies the internal sensor address register to be read from
pBufferpointer to data buffer
nBytesToReadnumber of bytes to be read
Return values:
0in case of success
1in case of failure

Definition at line 211 of file x_nucleo_iks01a2.c.

uint8_t Sensor_IO_Write ( void *  handle,
uint8_t  WriteAddr,
uint8_t *  pBuffer,
uint16_t  nBytesToWrite 
)

Writes a buffer to the sensor.

Parameters:
handleinstance handle
WriteAddrspecifies the internal sensor address register to be written to
pBufferpointer to data buffer
nBytesToWritenumber of bytes to be written
Return values:
0in case of success
1in case of failure

Definition at line 158 of file x_nucleo_iks01a2.c.