diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-29 16:27:29 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-29 16:27:29 +0200 |
commit | 3b2c2cf6b2af9e76b343a5a8fc8e9245f240690d (patch) | |
tree | f257a9a03b8205f55301901d00c5865f8b179607 /client/serial.c | |
parent | f466856892d94f5b42bf2369cae0fd73dd468dfa (diff) |
serial parsing working on client
Diffstat (limited to 'client/serial.c')
-rw-r--r-- | client/serial.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/client/serial.c b/client/serial.c new file mode 100644 index 0000000..6f667a8 --- /dev/null +++ b/client/serial.c @@ -0,0 +1,46 @@ +#include "serial.h" +#include "../shared/protocol.h" +#include "../shared/serial_parse.h" + +void w2_serial_main() { + int temp; + while ((temp = w2_serial_read()) != -1) w2_serial_parse(temp); + w2_serial_write("\xff\x14", 2); +} + +void w2_cmd_ping_tx(w2_s_bin *data) { + printf("w2_cmd_ping_tx()\n"); +} +void w2_cmd_expt_tx(w2_s_bin *data) { + printf("w2_cmd_expt_tx()\n"); +} +void w2_cmd_mode_tx(w2_s_bin *data) { + printf("w2_cmd_mode_tx()\n"); +} +void w2_cmd_cord_tx(w2_s_bin *data) { + printf("w2_cmd_cord_tx()\n"); +} +void w2_cmd_bomd_tx(w2_s_bin *data) { + printf("w2_cmd_bomd_tx()\n"); +} +void w2_cmd_sens_tx(w2_s_bin *data) { + printf("w2_cmd_sens_tx()\n"); +} +void w2_cmd_info_tx(w2_s_bin *data) { + printf("w2_cmd_info_tx()\n"); +} + +void w2_cmd_ping_rx(w2_s_bin *data) { return; } +void w2_cmd_mode_rx(w2_s_bin *data) { return; } +void w2_cmd_sped_rx(w2_s_bin *data) { return; } +void w2_cmd_dirc_rx(w2_s_bin *data) { return; } +void w2_cmd_cord_rx(w2_s_bin *data) { return; } +void w2_cmd_bomd_rx(w2_s_bin *data) { return; } +void w2_cmd_sres_rx(w2_s_bin *data) { return; } +void w2_cmd_mcfg_rx(w2_s_bin *data) { return; } +void w2_cmd_sens_rx(w2_s_bin *data) { return; } +void w2_cmd_info_rx(w2_s_bin *data) { return; } +void w2_cmd_disp_rx(w2_s_bin *data) { return; } +void w2_cmd_play_rx(w2_s_bin *data) { return; } +void w2_cmd_cled_rx(w2_s_bin *data) { return; } + |