I think you are referring to the following definitions.
>> command void EXCITATION25.on(){......}
>> command void EXCITATION33.on(){......}
>> command void EXCITATION50.on(){......}
But, interfaces in Tinyos are not defined in this way. Please look into
the directory /opt/tinyos-2.x/tos/interfaces/ for sample files defining
various interfaces.
Rgards,
Manjunath D
################################################################################################################
***************************************************************************************************************
On Mon, 14 Jun 2010, Li, Haixia wrote:
> Hello Manjunath,
>
> Thank you for your reply. The ".nc" files are written by myself. I provide
> the command "on( )". The detail content is given in my first email. Can you
> help me check the code? I'm confused. I provide the definition. Why does the
> problem appear?
>
> Thanks,
> Haixia Li
> ________________________________________
> From: Manjunath Doddavenkatappa [[email protected]]
> Sent: Sunday, June 13, 2010 11:56 PM
> To: Li, Haixia
> Cc: [email protected]
> Subject: Re: [Tinyos-help] some interface wire for MDA320 excitation
>
> Definition of the interfaces EXCITATION25, ..., do not
> include the command "on()." Please look into the ".nc" file defining
> these interfaces and make sure that it contains the definition of "on()."
>
> Manjunath D
>
> ################################################################################################################
> ***************************************************************************************************************
>
> On Sun, 13 Jun 2010, Li, Haixia wrote:
>
>> 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
>>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help