24 #ifndef __RFLPC_LEDS_H__
25 #define __RFLPC_LEDS_H__
41 #define RFLPC_LED_1 (1 << RFLPC_PIN_GET_PIN(RFLPC_LED_1_PIN))
43 #define RFLPC_LED_2 (1 << RFLPC_PIN_GET_PIN(RFLPC_LED_2_PIN))
45 #define RFLPC_LED_3 (1 << RFLPC_PIN_GET_PIN(RFLPC_LED_3_PIN))
47 #define RFLPC_LED_4 (1 << RFLPC_PIN_GET_PIN(RFLPC_LED_4_PIN))
#define RFLPC_LED_2
LED 2.
void rflpc_gpio_set_pin_mode_output(rflpc_pin_t pin, uint8_t val)
Sets a pin to output mode Uses a pin as output pin and sets its value.
#define RFLPC_LED_4_PIN
On which pin is the LED4 ?
static void rflpc_led_init()
Inits the GPIO port to use the leds.
static void rflpc_led_set(uint32_t l)
Turns the given led(s) on.
#define RFLPC_PIN_GET_PORT(pin)
Returns the X part of the PX_Y form pin description (i.e.
#define RFLPC_LED_2_PIN
On which pin is the LED2 ?
static void rflpc_led_clr(uint32_t l)
Clears the given led(s) (turn them off)
#define RFLPC_LED_4
LED 4.
#define RFLPC_LED_1_PIN
On which pin is the LED1 ?
void rflpc_gpio_set_val(uint8_t gpio, uint32_t val, uint32_t mask)
Sets the value of multiple pins of a given port from a mask and a value.
void rflpc_gpio_set_pins_from_mask(uint8_t gpio, uint32_t mask)
Set multiple pins from a mask.
#define RFLPC_LED_3
LED 3.
static void rflpc_led_binary_value(uint8_t v)
Turns the led to reflect a binary 4 digit number.
void rflpc_gpio_clr_pins_from_mask(uint8_t gpio, uint32_t mask)
Clean multiple pins from a mask.
#define RFLPC_LED_1
LED 1.
static void rflpc_led_val(uint32_t l)
Turns on the leds included in the mask.
#define RFLPC_LED_3_PIN
On which pin is the LED3 ?