brazos-trapezoidal
API006MemoryRW.h
Go to the documentation of this file.
1
13#ifndef TSP_API006MEMORYRW_API006MEMORYRW_H_
14#define TSP_API006MEMORYRW_API006MEMORYRW_H_
15
16#include "API006MemoryRW_prm.h"
17#include "Tsp.h"
18
19//=====================================================================================================================
20//-------------------------------------- PUBLIC (Extern Variables, Constants & Defines) -------------------------------
21//=====================================================================================================================
22
26#define MEMORYRW_API 6
27
31typedef enum
32{
33 API006_STATE_READ_REQUEST = 0,
34 API006_STATE_WRITE_REQUEST,
35 API006_STATE_IDLE
37
41typedef struct
42{
43 volatile API006_STATE_TYPE MemoryRW_State;
44// uint8_t MemoryRW_BufferWriteAux[MEMORYRW_MAX_BYTES_REQUESTED];
45 volatile uint32_t MemoryRW_AddressToRW;
46 volatile uint16_t MemoryRW_NumTotalBytesRequested;
47 uint8_t MemoryRW_LastPackageSend[MEMORYRW_MAX_BYTES_READ_PACKAGE];
49
50//=====================================================================================================================
51//-------------------------------------- PUBLIC (Function Prototypes) -------------------------------------------------
52//=====================================================================================================================
53
56
59
60
61#endif /* TSP_API006MEMORYRW_API006MEMORYRW_H_ */
void API006MemoryRW__Initialize(void)
It Initializes the module API006MemoryRW and its variables.
void API006MemoryRW__ResetState(void)
Reset the state of API for Idle.
API006_STATE_TYPE
States possibles in operation.
API006_STATE_TYPE API006MemoryRW__GetState(void)
Get actual state of the API.
void API006MemoryRW__ReceiveParser(TSP_TYPE *message)
This function Parse the data receive for API006 and change the state of the API, if needed.
Header file for API006MemoryRW.c.
#define MEMORYRW_MAX_BYTES_READ_PACKAGE
Number max of bytes in a read package (data only)
Header file of Tsp.
Struct for control parameters.
Definition: Tsp.h:23