Hello,
I’m sure that it is an error very easy to resolve...
Code:
[...]
[110] typedef frameCtrl_t* frmCtrl_rx;
[111] ieee802155cmd_t* WNRx = (ieee802155cmd_t*)payload;
[112] frmCtrl_rx = call
FrameControl.getFrmCtrlFields((nx_uint16_t)WNRx->FrmCtrl);
[...]
(Function getFrmCtrlFields returns a frameCtrl_t*)
Error:
In component `WakeupExampleC':
WakeupExampleC.nc: In function `Receive.receive':
WakeupExampleC.nc:112: syntax error before `='
/opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning "*** L
OW POWER COMMUNICATIONS DISABLED ***"
make: *** [exe0] Error 1
----------------------------------------------------------------------------------------------------------------------------------
frmCtrl_rx is a pointer to a type structure frameCtrl_t:
typedef nx_struct frameCtrl {
nx_uint16_t FrmCtrl; //Este va a ser el famoso campo de 2 bytes.
nx_uint8_t protocolVersion;
nx_bool frameType;
nx_bool destAddMode;
nx_bool srcAddMode;
nx_uint8_t txOptions;
}frameCtrl_t;
I don’t understand why compiler gives me an error.
I hope someone can help me, thanks very much.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help