comparison src/cs/services/vibr/vibr_messages_i.h @ 294:e17bdedfbf2b

VIBR SWE initial implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Mar 2022 08:46:10 +0000
parents
children
comparison
equal deleted inserted replaced
293:2d7d95e7f9c2 294:e17bdedfbf2b
1 /*
2 * In this header file we are going to define our internal messages
3 * that will be sent to our VIBR task by our API layer.
4 */
5
6 #ifndef __VIBR_MESSAGES_I
7 #define __VIBR_MESSAGES_I
8
9 #include "rv/rv_general.h"
10
11 struct vibr_start_msg {
12 T_RV_HDR hdr;
13 UINT8 num_pulses;
14 UINT8 vibr_level;
15 };
16
17 struct vibr_stop_msg {
18 T_RV_HDR hdr;
19 };
20
21 enum vibr_msg_id {
22 VIBR_START_REQ = 1,
23 VIBR_STOP_REQ
24 };
25
26 #endif