0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

added mdc1200 packet encoder

This commit is contained in:
OneOfEleven
2023-10-20 19:37:03 +01:00
parent e1dfb56335
commit 0c231148fe
6 changed files with 198 additions and 14 deletions

10
mdc1200.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef MDC1200H
#define MDC1200H
#include <stdint.h>
int MDC1200_encode_single_packet(uint8_t *data, const uint8_t op, const uint8_t arg, const uint16_t unit_id);
int MDC1200_encode_double_packet(uint8_t *data, const uint8_t op, const uint8_t arg, const uint16_t unit_id, const uint8_t b0, const uint8_t b1, const uint8_t b2, const uint8_t b3);
#endif