NHS31xx SW API

Detailed Description

Macros

#define LED_COUNT   1
 
#define LED_PROPERTIES   {{0, 8, true, IOCON_PIO0_8}} /* LED_RED */
 
#define LED_RED   LED_(0)
 
#define I2C_IRQHANDLER_BOARD
 
#define ACCEL_CHIP_FXLS8972CF
 
#define ACCEL_I2C_HW
 
#define HUMID_CHIP_SHTC3   0
 
#define HUMID_CHIP_HTU21D   1
 
#define ACCEL_SHOCK_ENABLE   1
 
#define ACCEL_SHAKE_ENABLE   0
 
#define ACCEL_VIBRATION_ENABLE   0
 
#define ACCEL_TILT_ENABLE   1
 
#define HUMID_I2C_HW   0
 
#define HUMID_I2C_BB   1
 
#define HUMID_POWER_PIN   7
 
#define UCODE_I2C_HW   0
 
#define UCODE_I2C_BB   1
 
#define UCODE_I2C_SLAVE_ADDRESS   0x51
 
#define UCODE_I2C_POWER_PIN   7
 
#define I2CBBM_DEFAULT_I2C_ADDRESS   UCODE_I2C_SLAVE_ADDRESS
 
#define I2CBBM_CLK_PIN   1
 
#define I2CBBM_DAT_PIN   2
 

Macro Definition Documentation

◆ LED_COUNT

#define LED_COUNT   1

The number of LEDs supported by the Demo PCB. Matches the length of LED_PROPERTIES.

◆ LED_PROPERTIES

#define LED_PROPERTIES   {{0, 8, true, IOCON_PIO0_8}} /* LED_RED */

The LED properties for the supported LEDs of the Demo PCB.

See also
LED_PROPERTIES_T

◆ LED_RED

#define LED_RED   LED_(0)

Easier to remember macro name for the first LED

◆ ACCEL_CHIP_FXLS8972CF

#define ACCEL_CHIP_FXLS8972CF

Only possible choice at the moment.

◆ ACCEL_I2C_HW

#define ACCEL_I2C_HW

Only possible choice at the moment.

◆ HUMID_CHIP_SHTC3

#define HUMID_CHIP_SHTC3   0

Only possible choice at the moment.

◆ HUMID_CHIP_HTU21D

#define HUMID_CHIP_HTU21D   1

Only possible choice at the moment.

◆ ACCEL_SHOCK_ENABLE

#define ACCEL_SHOCK_ENABLE   1

Overruling Diversity settings

◆ ACCEL_SHAKE_ENABLE

#define ACCEL_SHAKE_ENABLE   0

Overruling Diversity settings

◆ ACCEL_VIBRATION_ENABLE

#define ACCEL_VIBRATION_ENABLE   0

Overruling Diversity settings

◆ ACCEL_TILT_ENABLE

#define ACCEL_TILT_ENABLE   1

Overruling Diversity settings

◆ HUMID_I2C_HW

#define HUMID_I2C_HW   0

Overruling Diversity settings

◆ HUMID_I2C_BB

#define HUMID_I2C_BB   1

Overruling Diversity settings

◆ HUMID_POWER_PIN

#define HUMID_POWER_PIN   7

Overruling Diversity settings

◆ UCODE_I2C_HW

#define UCODE_I2C_HW   0

Overruling Diversity Settings

◆ UCODE_I2C_BB

#define UCODE_I2C_BB   1

Overruling Diversity Settings

◆ UCODE_I2C_SLAVE_ADDRESS

#define UCODE_I2C_SLAVE_ADDRESS   0x51

Overruling Diversity Settings

◆ UCODE_I2C_POWER_PIN

#define UCODE_I2C_POWER_PIN   7

Overruling Diversity Settings

◆ I2CBBM_DEFAULT_I2C_ADDRESS

#define I2CBBM_DEFAULT_I2C_ADDRESS   UCODE_I2C_SLAVE_ADDRESS

Overruling Diversity Settings

◆ I2CBBM_CLK_PIN

#define I2CBBM_CLK_PIN   1

Overruling Diversity Settings

◆ I2CBBM_DAT_PIN

#define I2CBBM_DAT_PIN   2

Overruling Diversity Settings

◆ I2C_IRQHANDLER_BOARD

#define I2C_IRQHANDLER_BOARD

Selection of I2C interrupt handler. Every module that uses I2C shall contain the I2C interrupt handler. But only one handler should be selected here by a macro with format I2C_IRQHANDLER_<module name>. For example: I2C_IRQHANDLER_UCODE // in ucode module I2C_IRQHANDLER_ACCEL // in accelerometer module I2C_IRQHANDLER_HUMID // in humidity module ... or I2C_IRQHANDLER_BOARD // in board.c file