no-OS
led.h
Go to the documentation of this file.
1 #include <stdbool.h>
2 #include <stdint.h>
3 
4 enum rj45_led {
8 };
9 
10 int led_init(void);
11 void led_tx_lock(bool on);
12 void led_rx_lock(bool on);
13 void led_tx_det_green(bool on);
14 void led_tx_det_red(bool on);
15 void led_rx_det_green(bool on);
16 void led_rx_det_red(bool on);
17 void led_rj45(enum rj45_led state);
18 void led_blink_all(unsigned int times, unsigned int duration);
led_init
int led_init(void)
rj45_led_green
@ rj45_led_green
Definition: led.h:6
rj45_led
rj45_led
Definition: led.h:4
led_rx_det_green
void led_rx_det_green(bool on)
rj45_led_off
@ rj45_led_off
Definition: led.h:5
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
led_tx_det_red
void led_tx_det_red(bool on)
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
rj45_led_yellow
@ rj45_led_yellow
Definition: led.h:7
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
led_tx_det_green
void led_tx_det_green(bool on)
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
led.h
no_os_gpio_get
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
led_rj45
void led_rj45(enum rj45_led state)
no_os_gpio_set_value
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
led_rx_det_red
void led_rx_det_red(bool on)
no_os_gpio.h
Header file of GPIO Interface.
led_rx_lock
void led_rx_lock(bool on)
led_tx_lock
void led_tx_lock(bool on)
led_blink_all
void led_blink_all(unsigned int times, unsigned int duration)
no_os_gpio_direction_output
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147