#include "../../Common/Common.h"Functions | |
| static void | LEDs_Init (void) |
| static void | LEDs_TurnOnLEDs (const uint8_t LEDMask) |
| static void | LEDs_TurnOffLEDs (const uint8_t LEDMask) |
| static void | LEDs_SetAllLEDs (const uint8_t LEDMask) |
| static void | LEDs_ChangeLEDs (const uint8_t LEDMask, const uint8_t ActiveMask) |
| static uint8_t | LEDs_GetLEDs (void) ATTR_WARN_UNUSED_RESULT |
User code should include this file, which will in turn include the correct LED driver header file for the currently selected board.
If the BOARD value is set to BOARD_USER, this will include the /Board/LEDs.h file in the user project directory.
| static void LEDs_ChangeLEDs | ( | const uint8_t | LEDMask, | |
| const uint8_t | ActiveMask | |||
| ) | [inline, static] |
Turns off all LEDs in the LED mask that are not set in the active mask, and turns on all the LEDs specified in both the LED and active masks.
| LEDMask | Mask of the board LEDs to manipulate (see board-specific LEDs.h driver file) | |
| ActiveMask | Mask of whether the LEDs in the LED mask should be turned on or off |
| static uint8_t LEDs_GetLEDs | ( | void | ) | [inline, static] |
Returns the status of all the board LEDs; set LED masks in the return value indicate that the corresponding LED is on.
| static void LEDs_Init | ( | void | ) | [inline, static] |
Initializes the board LED driver so that the LEDs can be controlled. This sets the appropriate port I/O pins as outputs, and sets the LEDs to default to off.
| static void LEDs_SetAllLEDs | ( | const uint8_t | LEDMask | ) | [inline, static] |
Turns off all LEDs not specified in the given LED mask, and turns on all the LEDs in the given LED mask.
| LEDMask | Mask of the board LEDs to manipulate (see board-specific LEDs.h driver file) |
| static void LEDs_TurnOffLEDs | ( | const uint8_t | LEDMask | ) | [inline, static] |
Turns off the LEDs specified in the given LED mask.
| LEDMask | Mask of the board LEDs to manipulate (see board-specific LEDs.h driver file) |
| static void LEDs_TurnOnLEDs | ( | const uint8_t | LEDMask | ) | [inline, static] |
Turns on the LEDs specified in the given LED mask.
| LEDMask | Mask of the board LEDs to manipulate (see board-specific LEDs.h driver file) |
1.5.5