libpynq (release 5EWC0-2023 version 0.2.3 of 2023-10-06 18:15)
Loading...
Searching...
No Matches
leds.c File Reference
#include <gpio.h>
#include <leds.h>
#include <log.h>
#include <pinmap.h>
#include <pwm.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for leds.c:

Go to the source code of this file.

Macros

#define LOG_DOMAIN   "leds"
 

Typedefs

typedef enum _led_mode led_mode
 

Enumerations

enum  _led_mode { uninitialized , binary , pwm_green , pwm_color }
 

Functions

void leds_init_onoff (void)
 
void green_leds_init_pwm (void)
 
void color_leds_init_pwm (void)
 
void leds_destroy (void)
 
void green_led_onoff (const int led, const int onoff)
 
void green_led_on (const int led)
 
void green_led_off (const int led)
 
void color_led_red_onoff (const int onoff)
 
void color_led_green_onoff (const int onoff)
 
void color_led_blue_onoff (const int onoff)
 
void color_led_onoff (const int red_onoff, const int green_onoff, const int blue_onoff)
 
void color_led_on (void)
 
void color_led_off (void)
 

Macro Definition Documentation

◆ LOG_DOMAIN

#define LOG_DOMAIN   "leds"

Definition at line 31 of file leds.c.

Typedef Documentation

◆ led_mode

typedef enum _led_mode led_mode

Enumeration Type Documentation

◆ _led_mode

enum _led_mode
Enumerator
uninitialized 
binary 
pwm_green 
pwm_color 

Definition at line 33 of file leds.c.