|
brazos-trapezoidal
|
Header file for API006MemoryRW.c. More...


Go to the source code of this file.
Classes | |
| struct | API006_MEMORYRW_CONTROL_TYPE |
| Struct for control parameters. More... | |
Macros | |
| #define | MEMORYRW_API 6 |
| API of Library. More... | |
Enumerations | |
| enum | API006_STATE_TYPE { API006_STATE_READ_REQUEST = 0 , API006_STATE_WRITE_REQUEST , API006_STATE_IDLE } |
| States possibles in operation. More... | |
Functions | |
| void | API006MemoryRW__Initialize (void) |
| It Initializes the module API006MemoryRW and its variables. More... | |
| void | API006MemoryRW__ReceiveParser (TSP_TYPE *message) |
| This function Parse the data receive for API006 and change the state of the API, if needed. More... | |
| API006_STATE_TYPE | API006MemoryRW__GetState (void) |
| Get actual state of the API. More... | |
| void | API006MemoryRW__ResetState (void) |
| Reset the state of API for Idle. More... | |
Header file for API006MemoryRW.c.
Definition in file API006MemoryRW.h.
| #define MEMORYRW_API 6 |
API of Library.
Definition at line 26 of file API006MemoryRW.h.
| enum API006_STATE_TYPE |
States possibles in operation.
Definition at line 31 of file API006MemoryRW.h.
| API006_STATE_TYPE API006MemoryRW__GetState | ( | void | ) |
Get actual state of the API.
Definition at line 227 of file API006MemoryRW.c.
| void API006MemoryRW__Initialize | ( | void | ) |
It Initializes the module API006MemoryRW and its variables.
Definition at line 40 of file API006MemoryRW.c.
| void API006MemoryRW__ReceiveParser | ( | TSP_TYPE * | message | ) |
This function Parse the data receive for API006 and change the state of the API, if needed.
Read/Write Request = 4 bytes (1 bit to indicate the operation (RW) / 31 bits to Address to RW) | 2 bytes (16 bits) to Total Bytes Request | 2 bytes (16 bits) pass phrase
Read State Byte Request = 2 bytes (16 bits) to number of the first byte to read | 2 bytes (16 bits) number of the bytes request in this package
Read State Byte Response = 2 bytes (16 bits) to number of the first byte requested | X bytes requested in this package
Write State Byte Request = 2 bytes (16 bits) to number of the first byte to write in memory | X bytes to write in memory (X is size of data - 2 bytes (16 bits))
Definition at line 63 of file API006MemoryRW.c.
| void API006MemoryRW__ResetState | ( | void | ) |
Reset the state of API for Idle.
Definition at line 238 of file API006MemoryRW.c.