First class data visualization and communication library with embedded devices. Code is maintained at github.com/Overdrivr/Telemetry
Dependents: telemetry_car_demo telemetry_demo_FRDM-TFC telemetry_example_01 telemetry_indexed_data_demo ... more
Diff: framing.hpp
- Revision:
- 3:37d2d127bc83
- Parent:
- 2:b7a3ac7bcec8
- Child:
- 4:8e3de1a314e1
--- a/framing.hpp Thu Feb 11 08:10:08 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -#ifndef FRAMING_H_ -#define FRAMING_H_ - -#include "stddef.h" -#include "stdint.h" - -void initialize_framing(); -// Outgoing data -// Set storage for the outgoing frame -void outgoing_storage(uint8_t * buf, uint32_t bufSize); - -void begin(); -void append(uint8_t byte); -void append2(uint16_t twobytes); -void append4(uint32_t fourbytes); -uint32_t end(); - -// Incoming data -// Set storage for the incoming data -void incoming_storage(uint8_t * buf, uint32_t bufSize); - -void set_on_incoming_frame(void (*callback)(uint8_t * storage, uint32_t occupiedSize)); -void set_on_incoming_error(void (*callback)(int32_t errCode)); -void feed(uint8_t byte); -#endif \ No newline at end of file