On 19 June 2012 19:42, Ludo Brands <[email protected]> wrote:
> So the struct should be translated as
>
> spi_ioc_transfer_t = record
>    tx_buf_ptr   : qword;
>    rx_buf_ptr   : qword;
>    len    : longword;
>    speed_hz     : longword;
>    delay_usec  : word;
>    bits_per_word : byte;
>    cs_change  : byte;
>    pad    : longword;
>  end;

Yes, or use ctypes to make it more clear.

Henry
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to