[Tinyos-help] Tinyos2.x Mica2 ADC free-running conversion
Philip Levis
pal at cs.stanford.edu
Tue Aug 1 10:41:05 PDT 2006
On Aug 1, 2006, at 10:16 AM, Ian Welch wrote:
> Phil,
> I actually found part of my problem. I had the line "components
> Atm128AdcC as ADC;" apparently it didn't want me to name the
> component ADC so I changed it to MyADC and cleared up the problem.
> Now I'm getting ERROR: "No Match" for InsoleC.Resource ->
> MyADC;
>
> I looked in Atm128AdcC.nc
> provides {
> interface Resource[uint8_t client];
> interface Atm128AdcSingle;
> interface Atm128AdcMultiple;
> }
>
> Do I need to need a client name when I wire it? I'm not sure what
> this is ---interface Resource[uint8_t client];-----
>
Yes. It's a parameterized interface.
You should take a look at how the standard read clients are wiring to
it. E.g., AdcReadStreamClientC.
If you're uncertain about parameterized interfaces, I've written a
TinyOS programming manual, which might make things a bit clearer. You
can download it from my web page.
Phil
More information about the Tinyos-help
mailing list