Macros | Enumerations | Functions | Variables
BSP_SensorNode.c File Reference

Implementation of I2C Sensor Node BSP functions. More...

#include "BCDS_BSP.h"
#include "BCDS_HAL.h"
#include "BSP_BoardType.h"
#include "BSP_BoardSettings.h"
#include "BSP_BoardShared.h"
#include "BSP_SensorNode.h"
#include "BCDS_BSP_SensorNode.h"
#include "BCDS_MCU_I2C_Handle.h"
+ Include dependency graph for BSP_SensorNode.c:

Macros

#define BCDS_MODULE_ID   BCDS_BSP_MODULE_ID_SENSOR_NODE
 
#define BMA280_STARTUP_DELAY   UINT32_C(3)
 
#define BME280_STARTUP_DELAY   UINT32_C(10)
 
#define BMG160_STARTUP_DELAY   UINT32_C(30)
 
#define BMI160_STARTUP_DELAY   UINT32_C(10)
 
#define BMM150_STARTUP_DELAY   UINT32_C(4)
 
#define MAX44009_STARTUP_DELAY   UINT32_C(10)
 

Enumerations

enum  
 
enum  
 
enum  
 
enum  
 
enum  
 
enum  Retcode_SensorNode_E
 

Functions

static void BMA280_INT2_InterruptCallback (void)
 
static void BMA280_INT_InterruptCallback (void)
 
static void BMG160_INT1_InterruptCallback (void)
 
static void BMG160_INT2_InterruptCallback (void)
 
static void BMI160_INT1_InterruptCallback (void)
 
static void BMI160_INT2_InterruptCallback (void)
 
static void BMM150_DRDY_InterruptCallback (void)
 
static void BMM150_INT_InterruptCallback (void)
 
Retcode_T BSP_SensorNode_Connect (void)
 Maps the GPIO pins to their desired function. More...
 
Retcode_T BSP_SensorNode_Disable (uint32_t id)
 Disables the control over the peripheral. More...
 
Retcode_T BSP_SensorNode_Disconnect (void)
 Disconnects the sensor node. More...
 
Retcode_T BSP_SensorNode_Enable (uint32_t id, BSP_Sensor_InterruptCallback_T callback)
 Enables the control over the peripheral. More...
 
HWHandle_T BSP_SensorNode_GetI2CHandle (void)
 Returns the handle of the communication interface used by the peripheral in case I2C is used for the sensor node. More...
 
bool BSP_SensorNode_IsAllNodesDisabled (void)
 Returns the boolean (TRUE/FALSE) based on the sensor node Enable/Disable status used by the peripheral in case I2C is used for the sensor node. More...
 
static void MAX44009_INTN_InterruptCallback (void)
 
static void SensorNode_DisableBus (void)
 Disables the I2C bus. More...
 
static void SensorNode_EnableBus (void)
 Enable the I2C bus. More...
 
void SensorNode_I2CISR (void)
 I2C interrupt service routine used to capture events at the I2C resource and to forward them to the MCU driver for processing. More...
 

Variables

I2C0Register_T BSP_I2C0
 
static struct MCU_I2C_Handle_S BSP_SensorNode_I2C_Handle
 
static
BSP_Sensor_InterruptCallback_T 
SensorNode_BMA280ISRCallback
 
static
BSP_Sensor_InterruptCallback_T 
SensorNode_BMG160ISRCallback
 
static
BSP_Sensor_InterruptCallback_T 
SensorNode_BMI160ISRCallback
 
static
BSP_Sensor_InterruptCallback_T 
SensorNode_BMM150ISRCallback
 
static I2C_IRQ_Callback_T SensorNode_I2CISRCallback
 
static
BSP_Sensor_InterruptCallback_T 
SensorNode_MAX44009ISRCallback
 
struct {
   bool   BMA280UsesINT1:1
 
   bool   BMA280UsesINT2:1
 
   bool   BMG160UsesINT1:1
 
   bool   BMG160UsesINT2:1
 
   bool   BMI160UsesINT1:1
 
   bool   BMI160UsesINT2:1
 
   bool   BMM150UsesDRDY:1
 
   bool   BMM150UsesINT:1
 
   bool   MAX44009UsesINTN:1
 
SensorsFlags
 

Macro Definition Documentation

#define BCDS_MODULE_ID   BCDS_BSP_MODULE_ID_SENSOR_NODE
#define BMA280_STARTUP_DELAY   UINT32_C(3)

macro used to represent the delay required for BMA280 after the power-up

#define BME280_STARTUP_DELAY   UINT32_C(10)

macro used to represent the delay required for BME280 after the power-up

#define BMG160_STARTUP_DELAY   UINT32_C(30)

macro used to represent the delay required for BMG160 after the power-up

#define BMI160_STARTUP_DELAY   UINT32_C(10)

macro used to represent the delay required for BMI160 after the power-up

#define BMM150_STARTUP_DELAY   UINT32_C(4)

macro used to represent the delay required for BMM150 after the power-up

#define MAX44009_STARTUP_DELAY   UINT32_C(10)

macro used to represent the delay required for MAX4409 after the power-up

Enumeration Type Documentation

anonymous enum
Enumerator
BMA280_INTERRUPT_1 
BMA280_INTERRUPT_2 
anonymous enum
Enumerator
MAX44009_INTN 
anonymous enum
Enumerator
BMG160_INTERRUPT_1 
BMG160_INTERRUPT_2 
anonymous enum
Enumerator
BMM150_INTERRUPT_1 
BMM150_DRDY 
anonymous enum
Enumerator
BMI160_INTERRUPT_1 
BMI160_INTERRUPT_2 
Enumerator
RETCODE_BSP_SENSOR_NODE_BMA280_INT2_BUSY 
RETCODE_BSP_SENSOR_NODE_BMM150_INT_BUSY 
RETCODE_BSP_SENSOR_NODE_BMI160_INT2_BUSY 
RETCODE_SENSOR_NODE_BMA280_ENABLED 
RETCODE_SENSOR_NODE_BMG160_ENABLED 
RETCODE_SENSOR_NODE_BME280_ENABLED 
RETCODE_SENSOR_NODE_BMM150_ENABLED 
RETCODE_SENSOR_NODE_MAX44009_ENABLED 
RETCODE_SENSOR_NODE_BMI160_ENABLED 

Function Documentation

static void BMA280_INT2_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMA280_INT_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMG160_INT1_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMG160_INT2_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMI160_INT1_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMI160_INT2_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMM150_DRDY_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void BMM150_INT_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void MAX44009_INTN_InterruptCallback ( void  )
static

+ Here is the caller graph for this function:

static void SensorNode_DisableBus ( void  )
static

This function disables the bus if it is not in use by any sensor

Parameters
Sensorthe sensor requesting to be enabled

+ Here is the caller graph for this function:

static void SensorNode_EnableBus ( void  )
static

This function enables the bus and registers the sensor in the bus shared register

Parameters
Sensorthe sensor requesting to be enabled

+ Here is the caller graph for this function:

void SensorNode_I2CISR ( void  )

+ Here is the caller graph for this function:

Variable Documentation

bool BMA280UsesINT1
bool BMA280UsesINT2
bool BMG160UsesINT1
bool BMG160UsesINT2
bool BMI160UsesINT1
bool BMI160UsesINT2
bool BMM150UsesDRDY
bool BMM150UsesINT
I2C0Register_T BSP_I2C0
struct MCU_I2C_Handle_S BSP_SensorNode_I2C_Handle
static
bool MAX44009UsesINTN
BSP_Sensor_InterruptCallback_T SensorNode_BMA280ISRCallback
static
BSP_Sensor_InterruptCallback_T SensorNode_BMG160ISRCallback
static
BSP_Sensor_InterruptCallback_T SensorNode_BMI160ISRCallback
static
BSP_Sensor_InterruptCallback_T SensorNode_BMM150ISRCallback
static
I2C_IRQ_Callback_T SensorNode_I2CISRCallback
static
BSP_Sensor_InterruptCallback_T SensorNode_MAX44009ISRCallback
static
struct { ... } SensorsFlags

This documentation file has been automatically generated on Wed May 6 2020 20:45:15 by doxygen 1.8.8