brazos-trapezoidal
Classes | Macros | Enumerations | Functions
API006MemoryRW.h File Reference

Header file for API006MemoryRW.c. More...

#include "API006MemoryRW_prm.h"
#include "Tsp.h"
Include dependency graph for API006MemoryRW.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Header file for API006MemoryRW.c.

Version
S00_00_01 Aug 25, 2021

Definition in file API006MemoryRW.h.

Macro Definition Documentation

◆ MEMORYRW_API

#define MEMORYRW_API   6

API of Library.


-----------------------------— Theta Power Systems - CONFIDENTIAL --------------------------------------------—

Definition at line 26 of file API006MemoryRW.h.

Enumeration Type Documentation

◆ API006_STATE_TYPE

States possibles in operation.

Definition at line 31 of file API006MemoryRW.h.

Function Documentation

◆ API006MemoryRW__GetState()

API006_STATE_TYPE API006MemoryRW__GetState ( void  )

Get actual state of the API.

Definition at line 227 of file API006MemoryRW.c.

◆ API006MemoryRW__Initialize()

void API006MemoryRW__Initialize ( void  )

It Initializes the module API006MemoryRW and its variables.

Definition at line 40 of file API006MemoryRW.c.

◆ API006MemoryRW__ReceiveParser()

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.

◆ API006MemoryRW__ResetState()

void API006MemoryRW__ResetState ( void  )

Reset the state of API for Idle.

Definition at line 238 of file API006MemoryRW.c.