Aloha implementation of LoRa technology

Dependencies:   SX1276Lib mbed

Fork of SX1276PingPong by Semtech

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AlohaPacket.h Source File

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