diff options
author | jaseg <git@jaseg.de> | 2023-09-25 23:57:36 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-09-25 23:57:36 +0200 |
commit | 8cc05c79cea62609d02231492c054a0cca2b2289 (patch) | |
tree | e39d40456adefe9bb70bcd77ebdf97be1dcdc028 /center_fw/8seg_protocol.h | |
parent | 583ac10d1450610a4110849c26cc16f03154d26e (diff) | |
download | 8seg-8cc05c79cea62609d02231492c054a0cca2b2289.tar.gz 8seg-8cc05c79cea62609d02231492c054a0cca2b2289.tar.bz2 8seg-8cc05c79cea62609d02231492c054a0cca2b2289.zip |
Center firmware WIP
Diffstat (limited to 'center_fw/8seg_protocol.h')
-rw-r--r-- | center_fw/8seg_protocol.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/center_fw/8seg_protocol.h b/center_fw/8seg_protocol.h deleted file mode 100644 index 2da42c4..0000000 --- a/center_fw/8seg_protocol.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef __8SEG_PROTOCOL_H__ -#define __8SEG_PROTOCOL_H__ - -enum packet_type { - PKT_TYPE_RESERVED = 0, - PKT_TYPE_SET_OUTPUTS_BINARY = 1, - PKT_TYPE_SET_GLOBAL_BRIGHTNESS = 2, - PKT_TYPE_SET_OUTPUTS = 3, - PKT_TYPE_GET_STATUS = 4, - PKT_TYPE_MAX -}; - -struct status_tx { - int16_t temp_tenths_C; - uint32_t uptime_s; - uint32_t decoding_error_cnt, protocol_error_cnt; - int16_t vcc_mv, vin_mv, vskew_mv; - uint16_t jitter_meas_avg_ns; -}; - -extern void set_outputs(uint8_t val[8]); -extern void set_outputs_binary(int mask, int global_brightness); - -void protocol_init(void); - -#endif /* __8SEG_PROTOCOL_H__ */ |