brazos-trapezoidal
Tsp.h
Go to the documentation of this file.
1
13#ifndef SOURCE_TSP_TSP_H_
14 #define SOURCE_TSP_TSP_H_
15
16
17#include "Tsp_prm.h"
18#include "mc_types.h"
19//=====================================================================================================================
20//-------------------------------------- PUBLIC (Extern Variables, Constants & Defines) -------------------------------
21//=====================================================================================================================
22typedef struct
23{
24 unsigned char start;
25 unsigned char f_adress;
26 unsigned char t_adress;
27 unsigned char size;
28 unsigned char api;
29 unsigned char data[DATA_SIZE-5]; //SPI Buffer size - 5 Header bytes
31
32typedef void (* const TSP_PARSER_RECEIVE_FUNCTION_TYPE)(TSP_TYPE *);
33
34typedef struct
35{
36 unsigned char API;
37 TSP_PARSER_RECEIVE_FUNCTION_TYPE RECEIVE_PARSER;
39
40//=====================================================================================================================
41//-------------------------------------- PUBLIC (Function Prototypes) -------------------------------------------------
42//=====================================================================================================================
43void Tsp__Initialize(void);
44void Tsp__FastHandler(void);
45void Tsp__SlowHandler(void);
46BOOL_TYPE Tsp__Send(BOOL_TYPE is_retry);
47void Tsp__LoadData(unsigned char adress,unsigned char num_of_bytes, unsigned char api, unsigned char *data );
48
49#endif // SOURCE_TSP_TSP_H_
50
51
void Tsp__SlowHandler(void)
Definition: Tsp.c:250
BOOL_TYPE Tsp__Send(BOOL_TYPE is_retry)
Method to send Tsp message.
Definition: Tsp.c:294
void Tsp__FastHandler(void)
Definition: Tsp.c:132
void Tsp__Initialize(void)
It Initializes the module Tsp and its variables.
Definition: Tsp.c:73
Parameters file for Tsp.
Contains generic typedefs that are able to change in case of different processors.
Definition: Tsp.h:23