comparison src/cs/services/fcbm/fcbm_messages.c @ 230:baa738eeb842

FCBM code implemented in first pass
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 May 2021 10:05:53 +0000
parents
children 28071f072194
comparison
equal deleted inserted replaced
229:7ec0ae23ce76 230:baa738eeb842
1 /*
2 * Incoming message dispatch for the FCBM task is implemented here.
3 */
4
5 #include "fcbm/fcbm_func_i.h"
6 #include "fcbm/fcbm_messages.h"
7 #include "kpd/kpd_api.h"
8 #include "rv/rv_general.h"
9 #include "rvf/rvf_api.h"
10 #include "rvm/rvm_use_id_list.h"
11
12 void fcbm_process_message(T_RV_HDR *msg_ptr)
13 {
14 switch (msg_ptr->msg_id) {
15 case FCBM_START_CHG_MODE:
16 fcbm_process_msg_chg_mode();
17 return;
18 case FCBM_START_PHONE:
19 fcbm_process_msg_phone_on();
20 return;
21 case KPD_KEY_EVENT_MSG:
22 fcbm_process_kpd_msg((T_KPD_KEY_EVENT_MSG *) msg_ptr);
23 return;
24 default:
25 rvf_send_trace("FCBM task: Received an unknown message", 38,
26 NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH,
27 FCHG_USE_ID);
28 }
29 }