RCOM PROJ
File transfer via serial port
|
Go to the source code of this file.
Data Structures | |
struct | stateMachineParams |
List of Parameters to Personalize the State Machine. More... | |
Enumerations | |
enum | stateMachineType { Supervision, Write, Read } |
enum | stateMachineState { Start, FLAG_RCV, A_RCV, C_RCV, BCC_OK, DONE } |
Functions | |
void | stateMachineSetUp (unsigned char control, unsigned char address, enum stateMachineState state, enum stateMachineType type) |
Function to easily change the State Machine. More... | |
int | stateMachine (unsigned char byte, unsigned char **buf, int *size) |
The StateMachine function that processes a byte and updates it's state. More... | |
int | processStart (unsigned char byte) |
Function to process a byte in case the state is Start. More... | |
int | processFLAG_RCV (unsigned char byte) |
Function to process a byte in case the state is FLAG_RCV. More... | |
int | processA_RCV (unsigned char byte) |
Function to process a byte in case the state is A_RCV. More... | |
int | processC_RCV (unsigned char byte) |
Function to process a byte in case the state is C_RCV. More... | |
int | processBCC_OK (unsigned char byte, unsigned char **buffer, int *buffersize) |
Function to process a byte in case the state is BCC_OK. More... | |
Variables | |
struct stateMachineParams | state_machine |