![]() |
NHS31xx SW API
|
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 |
#define LED_COUNT 1 |
The number of LEDs supported by the Demo PCB. Matches the length of LED_PROPERTIES.
#define LED_PROPERTIES {{0, 8, true, IOCON_PIO0_8}} /* LED_RED */ |
The LED properties for the supported LEDs of the Demo PCB.
#define LED_RED LED_(0) |
Easier to remember macro name for the first LED
#define ACCEL_CHIP_FXLS8972CF |
Only possible choice at the moment.
#define ACCEL_I2C_HW |
Only possible choice at the moment.
#define HUMID_CHIP_SHTC3 0 |
Only possible choice at the moment.
#define HUMID_CHIP_HTU21D 1 |
Only possible choice at the moment.
#define ACCEL_SHOCK_ENABLE 1 |
Overruling Diversity settings
#define ACCEL_SHAKE_ENABLE 0 |
Overruling Diversity settings
#define ACCEL_VIBRATION_ENABLE 0 |
Overruling Diversity settings
#define ACCEL_TILT_ENABLE 1 |
Overruling Diversity settings
#define HUMID_I2C_HW 0 |
Overruling Diversity settings
#define HUMID_I2C_BB 1 |
Overruling Diversity settings
#define HUMID_POWER_PIN 7 |
Overruling Diversity settings
#define UCODE_I2C_HW 0 |
Overruling Diversity Settings
#define UCODE_I2C_BB 1 |
Overruling Diversity Settings
#define UCODE_I2C_SLAVE_ADDRESS 0x51 |
Overruling Diversity Settings
#define UCODE_I2C_POWER_PIN 7 |
Overruling Diversity Settings
#define I2CBBM_DEFAULT_I2C_ADDRESS UCODE_I2C_SLAVE_ADDRESS |
Overruling Diversity Settings
#define I2CBBM_CLK_PIN 1 |
Overruling Diversity Settings
#define I2CBBM_DAT_PIN 2 |
Overruling Diversity Settings
#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