goodwatch/firmware/packet.h
Travis Goodspeed 652a5fba33 Beacon application works. First packets between devices!
Using FaradayRF settings on different frequencies for now.
2017-12-05 17:34:39 -05:00

26 lines
422 B
C

/*! \file packet.h
\brief Packet handling library.
*/
#include<stdint.h>
//! Length of the packet buffer.
#define PACKETLEN 128
//! Receive packet buffer.
extern uint8_t rxbuffer[];
//! Transmit packet buffer.
extern uint8_t txbuffer[];
//! Switch to receiving packets.
void packet_rxon();
//! Stop receiving packets.
void packet_rxoff();
//! Transmit a packet.
void packet_tx(uint8_t *buffer, uint8_t length);