Aloha implementation of LoRa technology

Dependencies:   SX1276Lib mbed

Fork of SX1276PingPong by Semtech

Committer:
rba90
Date:
Wed Jun 08 22:15:29 2016 +0000
Revision:
16:c3c6b13c3c42
Parent:
15:f790f35839db
random stuff

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rba90 15:f790f35839db 1 #ifndef ALOHAPACKET_H_
rba90 15:f790f35839db 2 #define ALOHAPACKET_H_
rba90 15:f790f35839db 3
rba90 15:f790f35839db 4 #include "stdint.h"
rba90 16:c3c6b13c3c42 5
rba90 16:c3c6b13c3c42 6
rba90 16:c3c6b13c3c42 7 // TODO: Move everything to Aloha.h
rba90 15:f790f35839db 8
rba90 15:f790f35839db 9 typedef struct
rba90 15:f790f35839db 10 {
rba90 15:f790f35839db 11 uint8_t fid;
rba90 15:f790f35839db 12 uint8_t no;
rba90 15:f790f35839db 13 } HeaderStruct;
rba90 15:f790f35839db 14
rba90 15:f790f35839db 15 typedef struct
rba90 15:f790f35839db 16 {
rba90 15:f790f35839db 17 uint8_t pd0;
rba90 15:f790f35839db 18 uint8_t pd1;
rba90 15:f790f35839db 19 } DataStruct;
rba90 15:f790f35839db 20
rba90 16:c3c6b13c3c42 21 void createAlohaPacket(uint8_t *output, HeaderStruct *header, DataStruct *data);
rba90 15:f790f35839db 22
rba90 16:c3c6b13c3c42 23 bool dissectAlohaPacket(uint8_t *input, HeaderStruct *header, DataStruct *data);
rba90 15:f790f35839db 24
rba90 15:f790f35839db 25 #endif