HomeCore 0.1.3 (07b5544)
Bare-metal personal computer firmware for Cortex-M
Loading...
Searching...
No Matches
led_ops_t Struct Reference

Operations an LED driver provides; every one is required. More...

#include <homecore/drivers/led.h>

Data Fields

int(* set )(void *device, bool on)
 Light (true) or turn off the LED; returns 0 or -1 with errno set.
 
int(* get )(void *device, bool *on)
 Store whether the LED is lit; returns 0 or -1 with errno set.
 

Detailed Description

Operations an LED driver provides; every one is required.


The documentation for this struct was generated from the following file: