Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SoftSerial MAX14690 Buffer
Fork of rtos_threading_with_callback by
linkLayer.h
00001 #pragma once 00002 #include<stdint.h> 00003 00004 typedef struct { 00005 uint8_t frameType; 00006 uint8_t priority; 00007 uint8_t *payload; 00008 unsigned payloadSz; 00009 } linkPacket; 00010 00011 class LinkLayerEncoder 00012 { 00013 public: 00014 LinkLayerEncoder(){oneCntr=0; hasPacket=false;} 00015 void setPacket(linkPacket*); 00016 bool getNext(); 00017 protected: 00018 unsigned oneCntr; 00019 int preambleBits; 00020 int frameTypeBits; 00021 unsigned encoderIndex; 00022 bool hasPacket; 00023 linkPacket *lp; 00024 };
Generated on Tue Sep 13 2022 05:19:36 by
