Macros | Functions | Variables
SensorNodeMapping.c File Reference
#include "BCDS_SensorUtils.h"
#include "BCDS_I2CTransceiver.h"
#include "SensorNodeMapping.h"
#include "BCDS_BSP_SensorNode.h"
+ Include dependency graph for SensorNodeMapping.c:

Macros

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_SENSORNODE_MAPPING
 

Functions

static void I2cInterruptCallback (I2C_T i2c, struct MCU_I2C_Event_S event)
 
int8_t SensorNodeMapping_BurstRead (unsigned char I2Caddr, unsigned char Reg, unsigned char *RegData, unsigned int NbrBytesToRead)
 Function to read a register of a device connected to I2C. More...
 
Retcode_T SensorNodeMapping_DeInit (void)
 de-Initializes I2C and disables the power to sensors. More...
 
Retcode_T SensorNodeMapping_Init (void)
 Initializes I2C and enables the power to sensors. More...
 
int8_t SensorNodeMapping_Read (unsigned char I2Caddr, unsigned char Reg, unsigned char *RegData, unsigned char NbrBytesToRead)
 Function to read a register of a device connected to I2C. More...
 
int8_t SensorNodeMapping_Write (unsigned char I2Caddr, unsigned char Reg, unsigned char *RegData, unsigned char NbrBytesToWrite)
 Function to write a register of a device connected to I2C. More...
 

Variables

static I2cTranceiverHandle_T SensorNodeI2CTransceiver = { false, NULL, NULL, NULL, INT8_C(-1) }
 

Macro Definition Documentation

#define BCDS_MODULE_ID   BCDS_SENSORUTILS_ID_SENSORNODE_MAPPING

Function Documentation

static void I2cInterruptCallback ( I2C_T  i2c,
struct MCU_I2C_Event_S  event 
)
static

+ Here is the caller graph for this function:

int8_t SensorNodeMapping_BurstRead ( unsigned char  I2Caddr,
unsigned char  Reg,
unsigned char *  RegData,
unsigned int  NbrBytesToRead 
)
Parameters
[in]I2CaddrI2C address of the connected device from which to read the register.
[in]RegRegister address of the device to read.
[out]RegDataPointer on a buffer into which the read values will be stored.
[in]NbrBytesToReadNumber of data elements expected to be received.
Return values
I2C_SUCCESSon success.
I2C_FAILUREif an error occurred.
Retcode_T SensorNodeMapping_DeInit ( void  )
Return values
RETCODE_OKon success or an error code otherwise.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Retcode_T SensorNodeMapping_Init ( void  )
Return values
RETCODE_OKon success or an error code otherwise.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int8_t SensorNodeMapping_Read ( unsigned char  I2Caddr,
unsigned char  Reg,
unsigned char *  RegData,
unsigned char  NbrBytesToRead 
)
Parameters
[in]I2CaddrI2C address of the connected device from which to read the register.
[in]RegRegister address of the device to read.
[out]RegDataPointer on a buffer into which the read values will be stored.
[in]NbrBytesToReadNumber of data elements expected to be received.
Return values
I2C_SUCCESSon success.
I2C_FAILUREif an error occurred.

+ Here is the caller graph for this function:

int8_t SensorNodeMapping_Write ( unsigned char  I2Caddr,
unsigned char  Reg,
unsigned char *  RegData,
unsigned char  NbrBytesToWrite 
)
Parameters
[in]I2CaddrI2C address of the connected device from which to read the register.
[in]RegRegister address of the device to read.
[in]RegDataPointer on a buffer into which the read values will be stored.
[in]NbrBytesToReadNumber of data elements expected to be received.
Return values
I2C_SUCCESSon success.
I2C_FAILUREif an error occurred.

+ Here is the caller graph for this function:

Variable Documentation

I2cTranceiverHandle_T SensorNodeI2CTransceiver = { false, NULL, NULL, NULL, INT8_C(-1) }
static

This documentation file has been automatically generated on Fri Oct 4 2019 03:47:29 by doxygen 1.8.8