Macros | |
#define | LED_UDP_BLINK__HALF_PERIOD_MS 500 |
#define | LED_UDP_BLINK_COUNT 10 |
Functions | |
void | ledctrl_init () |
void | ledctrl_receiver (struct simple_udp_connection *c, const uip_ipaddr_t *sender_addr, uint16_t sender_port, const uip_ipaddr_t *receiver_addr, uint16_t receiver_port, const uint8_t *data, uint16_t datalen) |
PROCESS (ledctrl_process,"LED Control process") | |
PROCESS_THREAD (ledctrl_process, ev, data) | |
Variables | |
struct simple_udp_connection | led_udp_conn |
#define LED_UDP_BLINK__HALF_PERIOD_MS 500 |
Referenced by ledctrl_receiver().
#define LED_UDP_BLINK_COUNT 10 |
Referenced by ledctrl_receiver().
void ledctrl_init | ( | void | ) |
References NULL, and process_start().
Referenced by main().
void ledctrl_receiver | ( | struct simple_udp_connection * | c, |
const uip_ipaddr_t * | sender_addr, | ||
uint16_t | sender_port, | ||
const uip_ipaddr_t * | receiver_addr, | ||
uint16_t | receiver_port, | ||
const uint8_t * | data, | ||
uint16_t | datalen | ||
) |
References data, delay_ms, i, LED_UDP_BLINK, LED_UDP_BLINK__HALF_PERIOD_MS, LED_UDP_BLINK_COUNT, LED_UDP_OFF, LED_UDP_ON, and printf.
Referenced by PROCESS_THREAD().
PROCESS | ( | ledctrl_process | , |
"LED Control process" | |||
) |
PROCESS_THREAD | ( | ledctrl_process | , |
ev | , | ||
data | |||
) |
References led_udp_conn, ledctrl_receiver(), NULL, printf, PROCESS_BEGIN, PROCESS_END, PROCESS_WAIT_EVENT, simple_udp_register(), and status.
struct simple_udp_connection led_udp_conn |
Referenced by PROCESS_THREAD().