This commit is contained in:
2025-02-04 21:33:02 +03:00
parent a2e2896f29
commit aefdf3912c
9 changed files with 215 additions and 33 deletions

View File

@@ -20,6 +20,8 @@
#include <stdint.h>
#include "sidservo.h"
// ASCII commands
#define U8P(x) ((uint8_t*)x)
// get binary data of all statistics
@@ -105,3 +107,7 @@ typedef struct{
uint16_t checksum; // 32
} __attribute__((packed)) SSlcmd; // long command
int SScmdS(SSscmd *cmd);
int SScmdL(SSlcmd *cmd);
uint16_t SScalcChecksum(uint8_t *buf, int len);
void SSconvstat(const SSstat *status, mountdata_t *mountdata);