Hello everyone,
I'm writing a driver for MDA320 sensor board. I wrote two files:
Mda320DeviceC.nc and Mda320DeviceP.nc. I have some problems about some
interface wire.
In Mda320DeviceC.nc:
configuration Mda320DeviceC{
provides {
interface StdControl;
interface Init;
interface ADConvert[uint8_t port];
// interface SetParam[uint8_t port];
interface EXCITATION25;
interface EXCITATION33;
interface EXCITATION50;
}
}
implementation {
.......
EXCITATION25=Mda320DeviceP.EXCITATION25;
EXCITATION33=Mda320DeviceP.EXCITATION33;
EXCITATION50=Mda320DeviceP.EXCITATION50;
........}
In Mda320DeviceP.nc
generic module Mda320DeviceP(uint32_t startup_delay) {
provides {
interface StdControl;
interface Init;
//interface Read<uint16_t>[uint8_t];
interface ADConvert[uint8_t port];
//interface SetParam[uint8_t port];
interface EXCITATION25;
interface EXCITATION33;
interface EXCITATION50;
}
........}
command void EXCITATION25.on(){......}
command void EXCITATION33.on(){......}
command void EXCITATION50.on(){......}
When I compile a program using these two files, the error are:
'on' is not in interface 'EXCITATION25'
'on' is not in interface 'EXCITATION33'
'on' is not in interface 'EXCITATION50'
Can anyone tell me what the problems are? Any help will be appreciated.
Haixia Li
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help