Contiki-NG
Loading...
Searching...
No Matches
leds_s Struct Reference

A LED logical representation. More...

#include <os/dev/leds.h>

Detailed Description

A LED logical representation.

pin corresponds to the GPIO pin a LED is driven by, using GPIO HAL pin representation.

port corresponds to the GPIO port that the pin is connected to. This only makes sense if GPIO_HAL_CONF_PORT_PIN_NUMBERING is non-zero.

negative_logic should be set to true if the LED is active low (that is, the LED turns on when the GPIO pin is driven low).

Note
Do not access the port member of this struct direct, use the LED_PORT() macro instead.

Definition at line 220 of file leds.h.