Microprocessor 2 Labs v2.0
Microprocessor 2 Lab Documenation
Loading...
Searching...
No Matches
led.h File Reference

Custom LED driver header file. More...

#include "driver/gpio.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.

Data Structures

struct  led_t
 LED object. More...
 

Enumerations

enum  state_t { OFF = 0 , ON = 1 }
 lcd.h More...
 

Functions

void led_enable (led_t *const led)
 LED enable.
 
void led_on (led_t *const led)
 Turn on LED object pin.
 
void led_off (led_t *const led)
 Turn off LED object pin.
 
void led_toggle (led_t *const led)
 Toggle LED object pin.
 

Detailed Description

Custom LED driver header file.

Author
Jesus Minjares (https://github.com/jminjares4)
Version
0.1
Date
2022-07-25

Enumeration Type Documentation

◆ state_t

enum state_t

lcd.h

LED state enumeration

Enumerator
OFF 

LED OFF

ON 

LED ON

Function Documentation

◆ led_enable()

void led_enable ( led_t *const led)

LED enable.

Parameters
ledpointer to LED object
Note
The function assume that the user has initialize the members of the object.
Returns
None

◆ led_off()

void led_off ( led_t *const led)

Turn off LED object pin.

Parameters
ledpointer to LED object
Note
Function will update the state of LED
Returns
None

◆ led_on()

void led_on ( led_t *const led)

Turn on LED object pin.

Parameters
ledpointer to LED object
Note
Function will update the state of LED
Returns
None

◆ led_toggle()

void led_toggle ( led_t *const led)

Toggle LED object pin.

Parameters
ledpointer to LED object
Note
Function will update the state of LED
Returns
None