Aloha implementation of LoRa technology

Dependencies:   SX1276Lib mbed

Fork of SX1276PingPong by Semtech

AlohaPacket.h

Committer:
rba90
Date:
2016-06-08
Revision:
16:c3c6b13c3c42
Parent:
15:f790f35839db

File content as of revision 16:c3c6b13c3c42:

#ifndef ALOHAPACKET_H_
#define ALOHAPACKET_H_

#include "stdint.h"


// TODO: Move everything to Aloha.h

typedef struct 
{
    uint8_t fid;
    uint8_t no;
} HeaderStruct;

typedef struct
{
    uint8_t pd0;
    uint8_t pd1;
} DataStruct;

void createAlohaPacket(uint8_t *output, HeaderStruct *header, DataStruct *data);

bool dissectAlohaPacket(uint8_t *input, HeaderStruct *header, DataStruct *data);

#endif