µracoli Manual  Version foo
GPIO API

Controlling the LEDs and Keys.
More...

Detailed Description

Overview

uracoli_modules_gpio.png
GPIO API in liburacoli_<board>.a
Usage
Examples

Functions

static uint8_t keys_debounced ( void  )
static
Returns
status ot the debounced key
Examples:
xmpl_keys.c, and xmpl_radio_range.c.

Definition at line 249 of file ioutil.h.

static void trap_if_key_pressed ( void  )
static
Returns
status ot the debounced key
Examples:
xmpl_trx_base.c, xmpl_trx_echo.c, xmpl_trx_rx.c, xmpl_trx_rxaack.c, xmpl_trx_tx.c, and xmpl_trx_txaret.c.

Definition at line 286 of file ioutil.h.

Defines

#define KEY_GET ( )    (0)

Reading of the KEY port directly and return the value LSB aligbed.

Examples:
xmpl_key_events.c.

Definition at line 221 of file ioutil.h.

#define KEY_INIT ( )

Initialisation of the KEY port

Examples:
xmpl_key_events.c, xmpl_keys.c, and xmpl_radio_range.c.

Definition at line 218 of file ioutil.h.

#define LED_CLR (   ln)    do{}while(0)

Switch the LED with the number ln OFF.

Examples:
xmpl_leds.c, xmpl_rtc.c, xmpl_trx_tx.c, and xmpl_trx_txaret.c.

Definition at line 175 of file ioutil.h.

#define LED_GET_VALUE ( )    0

Read back the current numeric value from the LED port.

Examples:
xmpl_key_events.c, and xmpl_trx_rx.c.

Definition at line 151 of file ioutil.h.

#define LED_MAX_VALUE   ((1<<LED_NUMBER)-1)

Maximum value, that can be displayed on the LEDs

Examples:
xmpl_leds.c, xmpl_trx_base.c, xmpl_trx_echo.c, xmpl_trx_rx.c, xmpl_trx_rxaack.c, xmpl_trx_tx.c, and xmpl_trx_txaret.c.

Definition at line 205 of file ioutil.h.

#define LED_NUMBER   (0)

Number of LEDs for this board

Examples:
xmpl_leds.c.

Definition at line 111 of file ioutil.h.

#define LED_SET (   ln)    do{}while(0)

Switch the LED with the number ln ON.

Examples:
xmpl_i2c.c, xmpl_isl29020.c, xmpl_leds.c, xmpl_lm73.c, xmpl_ow.c, xmpl_rtc.c, xmpl_sensor.c, xmpl_trx_base.c, xmpl_trx_tx.c, xmpl_trx_txaret.c, and xmpl_tsl2550.c.

Definition at line 163 of file ioutil.h.

#define LED_SET_VALUE (   x)    do{}while(0)

Display a numeric value on the LED port. The value x is masked out according LED_MASK, so that depending on the number of LEDs of the board the maximum displayed value is LED_MAX_VALUE.

Examples:
xmpl_key_events.c, xmpl_keys.c, xmpl_leds.c, xmpl_trx_base.c, xmpl_trx_echo.c, xmpl_trx_rx.c, xmpl_trx_rxaack.c, xmpl_trx_tx.c, and xmpl_trx_txaret.c.

Definition at line 135 of file ioutil.h.

#define LED_VAL (   msk,
  val 
)    do{}while(0)

.....

Definition at line 186 of file ioutil.h.