STK600 with the RCUC3B0 routing card LEDs support package.
This file contains definitions and services related to the LED features of the STK600 with the RCUC3B0 routing card.
To use this board, define BOARD=STK600_UC3B0.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include "compiler.h"
Macros | |
Identifiers of LEDs to Use with LED Functions | |
#define | LED0 0x01 |
#define | LED1 0x02 |
#define | LED2 0x04 |
#define | LED3 0x08 |
#define | LED4 0x10 |
#define | LED5 0x20 |
#define | LED6 0x40 |
#define | LED7 0x80 |
Functions | |
void | LED_Display (U32 leds) |
Sets the state of all LEDs. More... | |
void | LED_Display_Field (U32 field, U32 leds) |
Sets as a bit-field the state of the specified LEDs. More... | |
void | LED_Display_Mask (U32 mask, U32 leds) |
Sets the state of the specified LEDs. More... | |
U8 | LED_Get_Intensity (U32 led) |
Gets the intensity of the specified LED. More... | |
void | LED_Off (U32 leds) |
Turns off the specified LEDs. More... | |
void | LED_On (U32 leds) |
Turns on the specified LEDs. More... | |
U32 | LED_Read_Display (void) |
Gets the last state of all LEDs set through the LED API. More... | |
U32 | LED_Read_Display_Field (U32 field) |
Gets as a bit-field the last state of the specified LEDs set through the LED API. More... | |
U32 | LED_Read_Display_Mask (U32 mask) |
Gets the last state of the specified LEDs set through the LED API. More... | |
void | LED_Set_Intensity (U32 leds, U8 intensity) |
Sets the intensity of the specified LEDs. More... | |
bool | LED_Test (U32 leds) |
Tests the last state of the specified LEDs set through the LED API. More... | |
void | LED_Toggle (U32 leds) |
Toggles the specified LEDs. More... | |
#define LED0 0x01 |
#define LED1 0x02 |
#define LED2 0x04 |
#define LED3 0x08 |
#define LED4 0x10 |
#define LED5 0x20 |
#define LED6 0x40 |
#define LED7 0x80 |
void LED_Display | ( | U32 | leds | ) |
Sets the state of all LEDs.
leds | New state of all LEDs (1 bit per LED). |
Sets as a bit-field the state of the specified LEDs.
field | LEDs of which to set the state (1 bit per LED). |
leds | New state of the specified LEDs (1 bit per LED, beginning with the first specified LED). |
Sets the state of the specified LEDs.
mask | LEDs of which to set the state (1 bit per LED). |
leds | New state of the specified LEDs (1 bit per LED). |
Gets the intensity of the specified LED.
led | LED of which to get the intensity (1 bit per LED; only the least significant set bit is used). |
void LED_Off | ( | U32 | leds | ) |
Turns off the specified LEDs.
leds | LEDs to turn off (1 bit per LED). |
void LED_On | ( | U32 | leds | ) |
Turns on the specified LEDs.
leds | LEDs to turn on (1 bit per LED). |
U32 LED_Read_Display | ( | void | ) |
Gets the last state of all LEDs set through the LED API.
Gets as a bit-field the last state of the specified LEDs set through the LED API.
field | LEDs of which to get the state (1 bit per LED). |
Gets the last state of the specified LEDs set through the LED API.
mask | LEDs of which to get the state (1 bit per LED). |
Sets the intensity of the specified LEDs.
leds | LEDs of which to set the intensity (1 bit per LED). |
intensity | New intensity of the specified LEDs (0x00 to 0xFF). |
Tests the last state of the specified LEDs set through the LED API.
leds | LEDs of which to test the state (1 bit per LED). |
true
if at least one of the specified LEDs has a state on, else false
.void LED_Toggle | ( | U32 | leds | ) |
Toggles the specified LEDs.
leds | LEDs to toggle (1 bit per LED). |