pcu: Handle PCUIF (DE)ACT.req messages

Change-Id: I4440a6b24fb76b4f8096706769250b91bd2444bb
This commit is contained in:
Pau Espin 2019-12-02 12:57:03 +01:00
parent 3eef95c031
commit d16bb27306
1 changed files with 12 additions and 1 deletions

View File

@ -339,7 +339,6 @@ runs on RAW_PCU_BTS_CT {
/* Wait until the PCU is connected */
PCUIF.receive(tr_RAW_PCU_EV(PCU_EV_CONNECT));
/* TODO: implement ACT.req handling */
alt {
/* Wait for TXT.ind (PCU_VERSION) and respond with INFO.ind (SI13) */
[] PCUIF.receive(tr_PCUIF_TXT_IND(bts_nr, PCU_VERSION, ?)) -> value pcu_msg {
@ -360,6 +359,18 @@ runs on RAW_PCU_BTS_CT {
vc_CLCK_GEN.start(f_ClckGen_CT_handler());
repeat;
}
/* PCU -> TS becomes active */
[] PCUIF.receive(tr_PCUIF_ACT_REQ(bts_nr, ?, ?)) -> value pcu_msg {
log("Rx ACT.req from the PCU: TRX" & int2str(pcu_msg.u.act_req.trx_nr) &
"/TS" & int2str(pcu_msg.u.act_req.ts_nr));
repeat;
}
/* PCU -> TS becomes inactive */
[] PCUIF.receive(tr_PCUIF_DEACT_REQ(bts_nr, ?, ?)) -> value pcu_msg {
log("Rx DEACT.req from the PCU: TRX" & int2str(pcu_msg.u.act_req.trx_nr) &
"/TS" & int2str(pcu_msg.u.act_req.ts_nr));
repeat;
}
/* PCU -> test case forwarding (filter by the BTS number) */
[] PCUIF.receive(tr_PCUIF_MSG(?, bts_nr)) -> value pcu_msg {
TC.send(pcu_msg);