|
OneWay
3.0-3-ge9d4fa4
|
the receiver code. More...
#include <stdlib.h>#include <string.h>#include <avr/io.h>#include <avr/eeprom.h>#include <util/delay.h>#include "receive.h"
Functions | |
| void | start_rx (void) |
| enable the RX module and related serial port. More... | |
| void | stop_rx (void) |
| shutdown the receiver. More... | |
| char | get_char_echo (void) |
| get a char from the RX and echo it on the console. More... | |
| void | set_cmd (const uint8_t pin, const uint8_t cmd, struct debug_t *debug) |
| execute command on a pin. More... | |
| void | set_pin (struct htv_t *htv, struct debug_t *debug) |
| enable the IO and led based on the received command. More... | |
| void | look_for_cmd (struct htv_t *htv, struct debug_t *debug) |
| receive the AAAAPPC:RR string More... | |
| void | slave (struct debug_t *debug) |
| the main RX program | |
the receiver code.
| char get_char_echo | ( | void | ) |
get a char from the RX and echo it on the console.
receive the AAAAPPC:RR string
| void set_cmd | ( | const uint8_t | pin, |
| const uint8_t | cmd, | ||
| struct debug_t * | debug | ||
| ) |
execute command on a pin.
| pin | which pin to enable or disable. |
| cmd | 1 - enable, 0 - disable |
| debug | the debug_t struct. |
enable the IO and led based on the received command.
| void start_rx | ( | void | ) |
enable the RX module and related serial port.
| void stop_rx | ( | void | ) |
shutdown the receiver.
1.8.13