Nut/OS  4.10.3
API Reference
led.h File Reference

LED handler definitions. More...

#include <stdint.h>
Include dependency graph for led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define LED_OFF   0
 LED action definitions.
#define LED_ON   1
 Switch LED on.
#define LED_FLIP   2
 Flip the LED state (toggle).
#define LED_BLINK   4
 Let the LED blink continuously.


void NutSetLed (HANDLE ledh, uint_fast8_t fxin, uint32_t timOn, uint32_t timOff)
 sets state of a LED
void SetLedEvent (uint8_t led, uint32_t interval, uint32_t duration)
int NutRegisterLed (HANDLE *ledh, int port, int pin)
 Register an LED for handling.

Detailed Description

LED handler definitions.

Definition in file led.h.

Function Documentation

void SetLedEvent ( uint8_t  led,
uint32_t  interval,
uint32_t  duration