-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstream_processor.h
More file actions
50 lines (36 loc) · 1.24 KB
/
stream_processor.h
File metadata and controls
50 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* stream_processor.h
*
* Created: 08/03/2016 21:49:21
* Author: Tyler
*/
#ifndef STREAM_PROCESSOR_H_
#define STREAM_PROCESSOR_H_
#define BODY_STREAM_LENGTH 42
#define HEAD_STREAM_LENGTH 13
#include "head_codes.h"
#include "body_codes.h"
/*! struct for storing buffered data*/
typedef struct
{
uint8_t writeposition;
uint8_t next;
uint8_t readposition;
char array[64];
} stream_buffer_t;
/* FUNCTION DECLARATIONS *******************************************/
int StreamProcessorInit();
int StreamProcessorProcess();
int StreamProcessorBodySet(lcd_segment segment);
int StreamProcessorBodyClear(lcd_segment segment);
int StreamProcessorBodyValue(lcd_segment segment,uint8_t value);
int StreamProcessorBodyReturn(lcd_segment segment);
int StreamProcessorBodySetText(const lcd_string* const string,char*test);
int StreamProcessorSetCharacter(const lcd_character* const character,char letter);
int StreamProcessorBodyReturnText(const lcd_string* const string);
int StreamProcessorReturnCharacter(const lcd_character* const character);
int StreamProcessorHeadSetMask(uint8_t byte,char mask);
int StreamProcessorHeadSetData(uint8_t byte,char data);
extern stream_buffer_t headInput;
extern stream_buffer_t bodyInput;
#endif /* STREAM_PROCESSOR_H_ */