Generalized-Core-Counter 3.20
Particle-based generalized core counter firmware
Loading...
Searching...
No Matches
SensorDefinition Struct Reference

Static metadata for each supported sensor type. More...

#include <SensorDefinitions.h>

Public Attributes

bool ledDefaultOn
 true if LED should be ON at boot (polarity-specific)
const char * name
 Short name for logging / display.
SensorType type
 SensorType enum value.
bool usesInterrupt
 true if sensor uses a hardware interrupt line

Detailed Description

Static metadata for each supported sensor type.

This provides a single place to review which sensor types are defined in the firmware and to adjust device-specific defaults (such as LED behavior, interrupt usage, etc.).

Definition at line 14 of file SensorDefinitions.h.

Member Data Documentation

◆ ledDefaultOn

bool SensorDefinition::ledDefaultOn

true if LED should be ON at boot (polarity-specific)

Definition at line 17 of file SensorDefinitions.h.

Referenced by setup().

◆ name

const char* SensorDefinition::name

Short name for logging / display.

Definition at line 16 of file SensorDefinitions.h.

◆ type

SensorType SensorDefinition::type

SensorType enum value.

Definition at line 15 of file SensorDefinitions.h.

◆ usesInterrupt

bool SensorDefinition::usesInterrupt

true if sensor uses a hardware interrupt line

Definition at line 18 of file SensorDefinitions.h.


The documentation for this struct was generated from the following file: