125 extern void LedSet(uint32_t Leds, uint32_t Function);
147 LedSet(Leds, (uint32_t)Function);
158 #ifdef LED_DRIVER_DOXYGEN 160 #define LED_FLASHING_ENABLED true/false 162 #define LED_COUNTING_ENABLED true/false 164 #define NUMBER_OF_FLASHING_PATTERN Number Header file for the EVE millisecond-scale work scheduling.
uint16_t OnTime
Time the LED is on, 1/1.024 ms resolution, use MWORK_MSEC()
Time in processor ticks LED(s) is on.
Pause time in processor ticks between flashing series.
#define NUMBER_OF_FLASHING_PATTERN
Number == How many flashing patterns defined?
Set LED(s) to constant invert flashing.
static void UpdateLeds(uint32_t BitLedOn)
User supplied function to update LEDs.
static void LedCounting(uint32_t Leds, const struct led_counting_t *Function)
Sets LED(s) to counting function.
uint16_t Time[NUMBER_OF_COUNTING_TIMES]
1/1.024 ms resolution, use MWORK_MSEC(). If Time[COUNTING_PAUSE] = 0, the flashing is stopped after o...
void LedInit(void)
Initialize LED driver. Must be called before LedSet() or LedCounting() can be called.
bool Invert
If TRUE, the flashing is inverted (ON<->OFF)
Set LED(s) to constant flashing.
uint16_t OffTime
Time the LED is off, 1/1.024 ms resolution, use MWORK_MSEC()
void LedSet(uint32_t Leds, uint32_t Function)
Sets LED(s) function (on/off/flash).
Time in processor ticks LED(s) is off.
uint8_t Count
Number of flashes per flashing serie.
const struct led_flash_t LedFlashing[NUMBER_OF_FLASHING_PATTERN]
User's array of led_flash_t defines flashing patterns.