Even though your "x" is a two dimensional array,
I believe I think I remember that C will treat it as
a pointer to a one dimensional object, so try taking
a * off of the function argument defines.

This begs the question of how you will use it in your
SimulaNN() function because it doesn't know the sizes
to calculate 2d positions. I would have to go readup
and experiment (or search for relevant examples)
because there's been too many other arrays under the
bridge since I did that sort of thing seriously...
but something like ( nx_uint16_t N[][number-columns] )
might also work...

MS

[EMAIL PROTECTED] wrote:
> Hi to all, I have a problem on the development of a program written in 
> nesC for the platform telosB:
> 
> nx_uint16_t x [rows] [columns];
> event void Timer.fired ( )
> { ...
>   result = call NeuralNet.SimulaNN (x);
>   ...
> }
> 
> The method SimulaNN is defined in the NeuralNet interface in this way:
> 
> interface NeuralNet
> { command uint16_t SimulaNN (nx_uint16_t** );
> }
> 
> Finally the component that defined this interface writes the method in 
> this way:
> 
> command uint16_t NeuralNetEnea.SimulaNN (nx_uint16_t** N)
> { ... }
> 
> The types seem to be compatible, but the compiler gives me the following 
> warning:
> 
> Component.nc: In function `Timer.fired':
> Component.nc:141: warning: passing argument 1 of `NeuralNet.SimulaNN' 
> from incompatible pointer type
> Component.nc: In function `Component$Timer$fired':
> Component.nc:141: warning: passing arg 1 of `Component$NeuralNet$Simul 
> aNN' from incompatible pointer type
> 
> why?
> Thank you for your attention
> 
> Claudio
> 
> 
> ----
> Email.it, the professional e-mail, gratis per te: clicca qui 
> <http://www.email.it/cgi-bin/start?sid=3>
> 
> Sponsor:
> Polizza auto? Garanzia furto e incendio per un anno al vantaggioso 
> prezzo di 30 euro tasse incluse! Scopri subito l'offerta!
> Clicca qui <http://adv.email.it/cgi-bin/foclick.cgi?mid=8425&d=20081127>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to