Following is a configuration file and SamplingC is being used in some
other config. file say xxxxC, now, the need is:

        In xxxxC, is it possible to ask SamplingC to bind its ADC to a
particular PORT. (mean, can I set "YYYYYYPORTYYYYYY" value dynamically
in the config. file xxxxC)

Thanking you,
D. Manjunath

configuration SamplingC
{
    provides {
        interface Sampling[uint8_t id];
    }
}

implementation
{
    components Main, TimerC, SamplingM, ADCC, MicC;

    Sampling = SamplingM.Sampling;

    SamplingM.ADC -> ADCC.ADC[YYYYYPORTYYYYYY];

    SamplingM.ADCControl -> ADCC.ADCControl;
    SamplingM.Mic -> MicC;
    SamplingM.MicControl -> MicC.StdControl;
    SamplingM.SamplingClock -> TimerC.Timer[unique("Timer")];
}


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to