-
Notifications
You must be signed in to change notification settings - Fork 0
/
asw_com.h
35 lines (26 loc) · 963 Bytes
/
asw_com.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* File: asw_com.h
* Author: Cristian T. A.
*
* Created on August 28, 2018, 9:38 AM
*/
#ifndef ASW_COM_H
#define ASW_COM_H
#define ASW_COM_DIM_FIFO 64
/**************** Message Types ************************************************/
/* The road that I'm on, is the main one */
#define COM_MSG__FIRST_ENTER 0b00000001
/* I finished the curve. Delete me from the Array */
#define COM_MSG__EXIT 0b00000011
/**************** Message Masks ************************************************/
#define CHECK_IS_ON_MAIN_mask 0b01000000
#define CHECK_DIRECTION_mask 0b00110000
#define CHECK_ROADNUM_mask 0b00001100
#define CHECK_MSGTYPE_mask 0b00000011
/*******************************************************************************/
void COM_vCheckIRQ(void);
void COM_vSendMessage(T_U8 u8Message);
void COM_vStartListening(void);
void COM_vProcessMessage(T_U8 u8Message);
void COM_vProcessFIFO(void);
#endif /* ASW_COM_H */