45 #ifndef CPU_LPC54114J256BD64_cm4 53 #define N 0x00 // No color 54 #define R 0x04 // Red LED 55 #define G 0x02 // Green LED 56 #define B 0x01 // Blue LED 81 uint8_t blink =
false;
108 if ((!blink) | (status != pStatus->
previous))
198 pStatus->
set(pStatus,
OFF);
206 #ifndef CPU_LPC54114J256BD64_cm4
fusion_status_t previous
Previous status state - fusion_status_t is defined in sensor_fusion.h.
Initializing sensors and algorithms.
void ssSetStatusNow(StatusSubsystem *pStatus, fusion_status_t status)
ssSetStatus_t * set
change status immediately - no delay
Receiving commands over wireless interface (momentary)
#define LED_RED_INIT(output)
void ssTest(StatusSubsystem *pStatus)
void initializeStatusSubsystem(StatusSubsystem *pStatus)
#define LED_GREEN_INIT(output)
These are the state definitions for the status subsystem.
void ssQueueStatus(StatusSubsystem *pStatus, fusion_status_t status)
StatusSubsystem() provides an object-like interface for communicating status to the user...
Recoverable FAULT = something went wrong, but we can keep going.
ssUpdateStatus_t * update
make pending status active/visible
void ssSetLeds(int8_t RGB)
gpioHandleKSDK_t GREEN_LED
uint8_t toggle
This implementation can change LED color and have either solid/toggle.
fusion_status_t status
Current status.
#define BOARD_LED_GREEN_GPIO_PIN
The sensor_fusion.h file implements the top level programming interface.
Receiving commands over wired interface (momentary)
Running in reduced power mode.
void ssUpdateStatus(StatusSubsystem *pStatus)
Provides function prototypes for driver level interfaces.
ssSetStatus_t * queue
queue status change for next regular interval
ssUpdateStatus_t * test
unit test which simply increments to next state
#define BOARD_LED_RED_GPIO_PIN
clock_ip_name_t clockName
Non-recoverable FAULT = something went very wrong.
Application-specific status subsystem.
void ssSetStatus(StatusSubsystem *pStatus, fusion_status_t status)
#define BOARD_LED_RED_GPIO_PORT
fusion_status_t
Application-specific serial communications system.
#define BOARD_LED_GREEN_GPIO_PORT
fusion_status_t next
Pending status change.