paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] spi call back function


From: Chris
Subject: [Paparazzi-devel] spi call back function
Date: Wed, 03 Jul 2013 11:38:11 +0300
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

Hi.
Felix can i change the spi "after_cb" function during code execution so i can call different functions or after the spi transaction initialization the call back function should remain fixed
the whole time?
I am writting a module and if i got this right the "after_cb" function is really used as the "event"
function which is commonly used for the modules.

max7456_trans.after_cb  = max7456_trans_cb;

where the function's prototype called back is defined like this:
static void max7456_trans_cb(struct spi_transaction *trans);

and the function definition has the "__attribute__ ((unused))" attribute:
static void max7456_trans_cb(struct spi_transaction *trans __attribute__ ((unused))){

return;
}

Chris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]