NHS31xx SW API
Diversity settings

Detailed Description

These 'defines' capture the diversity settings of the module. The displayed values refer to the default settings. To override the default settings, place the defines with their desired values in the application app_sel.h header file: the compiler will pick up your defines before parsing this file.

Data Structures

struct  LED_PROPERTIES_T
 

Macros

#define LED_COUNT   0
 
#define LED_PROPERTIES   NULL
 

Data Structure Documentation

◆ LED_PROPERTIES_T

struct LED_PROPERTIES_T

Defines all properties of a LED this module requires to know to drive them in an uniform way. Used by diversity setting LED_PROPERTIES

Data Fields
uint8_t port

The port number via which the GPIO can access the LED.

uint8_t pin

The pin number via which the GPIO can access the LED.

bool polarity

The polarity of the LED: true if the LED is 'on' when a 1 is written - active high, false otherwise - active low.

IOCON_PIN_T pio

The I/O Pins Definition that corresponds to the values above.

Macro Definition Documentation

◆ LED_COUNT

#define LED_COUNT   0

Defines how many LEDs are present and can be controlled by the LED module.

◆ LED_PROPERTIES

#define LED_PROPERTIES   NULL

Refers to an array of type LED_PROPERTIES_T with size LED_COUNT. Defines the properties of a LED.