ENEL400
/
Aloha
Aloha implementation of LoRa technology
Fork of SX1276PingPong by
Embed:
(wiki syntax)
Show/hide line numbers
AlohaPacket.h
00001 #ifndef ALOHAPACKET_H_ 00002 #define ALOHAPACKET_H_ 00003 00004 #include "stdint.h" 00005 00006 00007 // TODO: Move everything to Aloha.h 00008 00009 typedef struct 00010 { 00011 uint8_t fid; 00012 uint8_t no; 00013 } HeaderStruct; 00014 00015 typedef struct 00016 { 00017 uint8_t pd0; 00018 uint8_t pd1; 00019 } DataStruct; 00020 00021 void createAlohaPacket(uint8_t *output, HeaderStruct *header, DataStruct *data); 00022 00023 bool dissectAlohaPacket(uint8_t *input, HeaderStruct *header, DataStruct *data); 00024 00025 #endif
Generated on Mon Jul 18 2022 00:06:05 by 1.7.2