mirror of https://github.com/lumapu/ahoy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
451 B
18 lines
451 B
|
|
|
|
class HM_Packets
|
|
{
|
|
private:
|
|
uint32_t unixTimeStamp;
|
|
|
|
void prepareBuffer(uint8_t *buf);
|
|
void copyToBuffer(uint8_t *buf, uint32_t val);
|
|
void copyToBufferBE(uint8_t *buf, uint32_t val);
|
|
|
|
public:
|
|
void SetUnixTimeStamp(uint32_t ts);
|
|
void UnixTimeStampTick();
|
|
|
|
int32_t GetTimePacket(uint8_t *buf, uint32_t wrAdr, uint32_t dtuAdr);
|
|
int32_t GetCmdPacket(uint8_t *buf, uint32_t wrAdr, uint32_t dtuAdr, uint8_t mid, uint8_t cmd);
|
|
};
|
|
|