comparison src/cs/drivers/drv_app/fchg/fchg_messages.h @ 322:c4077830aeeb

FCHG implementation code started
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 04 Dec 2017 05:55:58 +0000
parents
children
comparison
equal deleted inserted replaced
321:5dea7e937c37 322:c4077830aeeb
1 /*
2 * In this header file we are going to define the messages
3 * that can be sent to the FCHG task.
4 */
5
6 #ifndef __FCHG_MESSAGES_H
7 #define __FCHG_MESSAGES_H
8
9 #include "rv/rv_general.h"
10
11 // Request mail
12 struct pwr_req_s {
13 T_RV_HDR header;
14 };
15
16 // Indication mail with ADC measurements
17 struct pwr_adc_ind_s {
18 T_RV_HDR header;
19 unsigned short data[9+1]; // ADC measurements + status of VRPCSTS register
20 };
21
22 // Message IDs for all PWR module messages
23 enum pwr_msg_id {
24 /* message types new to FCHG */
25 USER_START_CHARGE_REQ = 1,
26 USER_STOP_CHARGE_REQ,
27 /* messages sent to us by SPI task, same as TI's LCC */
28 PWR_CHARGER_PLUGGED_IND = 40,
29 PWR_CHARGER_UNPLUGGED_IND,
30 PWR_ADC_IND = 90
31 };
32
33 #endif