[En-Nut-Discussion] RFC: spibus: Return status of MISO line with transfer with xlen == 0;

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Fri Sep 9 10:48:45 CEST 2016


>>>>> "Ole" == Ole Reinhardt <ole.reinhardt at embedded-it.de> writes:

What about making the return value of
(*bus->bus_transfer) (node, NULL, NULL, 0)
0 : Function not implemented
1 : MISO reads one
-1: Miso reads zero.

0 is also the return value in all other cases.

That way an application could check for unimplemented functionality.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------


More information about the En-Nut-Discussion mailing list