21#ifndef APPS_LED_BLINKER_H
22#define APPS_LED_BLINKER_H
73 int16
command(uint16
apid, uint8* buffer, uint16 size)
override;
75 int16
start()
override;
#define SIGNAL(NAME, TYPE, INITIAL_VALUE)
Definition appmacros.h:27
#define START_PARAMS
Definition appmacros.h:42
#define END_OUTPUTS
Definition appmacros.h:33
#define END_PARAMS
Definition appmacros.h:47
#define START_OUTPUTS
Definition appmacros.h:28
App(FlightExecutive &executive, const char *name, uint16 apid, uint8 instance=0)
Executive-based constructor for the task.
Definition App.cpp:21
uint16 apid()
Get the apid for this app.
Definition App.h:105
Executive derivation specifically to run flight systems.
Definition FlightExecutive.h:46
int16 deactivate() override
Deactivate the app. The app will not step when deactivated.
Definition LedBlinker.cpp:74
int16 execute() override
Definition LedBlinker.cpp:42
int16 activate() override
Activate the app. The app will step when active.
Definition LedBlinker.cpp:68
uint8 _count
The current LED blinker counter which resets when frequency achieved.
Definition LedBlinker.h:82
int16 command(uint16 apid, uint8 *buffer, uint16 size) override
Process commands issued to the app.
Definition LedBlinker.cpp:86
LedBlinker(FlightExecutive &executive)
Definition LedBlinker.cpp:20
int16 start() override
Definition LedBlinker.cpp:31
tlm_led_blinker_count _tlm_count
Packet to hold LED blink count.
Definition LedBlinker.h:85
uint8 _freq
The frequency at which the LED blinker should blink.
Definition LedBlinker.h:79
Definition DeadReckon.cpp:20
LED Blinker count packet definition.
Definition tlm_LedBlinker.h:41
clockwerk::DataIO< uint32 > blink_count
Definition LedBlinker.h:53
clockwerk::DataIO< bool > status
Definition LedBlinker.h:51
clockwerk::DataIO< uint8 > bank
Definition LedBlinker.h:44
clockwerk::DataIO< uint8 > frequency
Definition LedBlinker.h:42
clockwerk::DataIO< uint32 > pin
Definition LedBlinker.h:46