brazos-trapezoidal
Tsp_prm.h
Go to the documentation of this file.
1
14#ifndef SOURCE_TSP_TSP_PRM_H_
15 #define SOURCE_TSP_TSP_PRM_H_
16
17#include "SerialBuffer.h"
18//#include "applianceSM.h"
19
20//=====================================================================================================================
21//-------------------------------------- PUBLIC (Extern Variables, Constants & Defines) -------------------------------
22//=====================================================================================================================
23
24
25/********************************************************************************
26 * Defines this node ID
27 */
28#define NODE_ID 1
29
30/********************************************************************************
31 * Defines the size of the message
32 * Should be defined based on the Serial buffer slot size
33 */
34#define DATA_SIZE SERIAL_BUFFER_SLOT_SIZE
35
36/********************************************************************************
37 * Defines other node IDs
38 */
39#define UI_ID 2
40
41#define BROADCAST_ID 0xFF
42
43
44/********************************************************************************
45 * Wait time for receiving an Ack
46 */
47#define MAX_ACK_WAIT_COUNTER 800
48
49/********************************************************************************
50 * Number of retries
51 */
52#define MAX_RETRY_COUNTER 3
53
57#define BAD_CONTROL_PASS_PHRASE_ACK 0xFF
58
62#define BAD_VERSION_PASS_PHRASE_ACK 0xFA
63
64//=====================================================================================================================
65//-------------------------------------- PUBLIC (Function Prototypes) -------------------------------------------------
66//=====================================================================================================================
67
68#define TSP_ACK_ERROR() //applianceSM__SetError(FAULTS_COMM_NO_MCU_ACK)
69#define TSP_BUFFERFULL_ERROR() //applianceSM__SetError(FAULTS_COMM_ACU_BUFFERFULL)
70
71#endif // SOURCE_TSP_TSP_PRM_H_
72
73
Header file of SerialBuffer.