> 32.
> 
> > Because that would indicate that u64 needs to be indeed 64 bits. I 
> > have seen u64 defined as typedef unsigned long long for ARM.
> 
> "long" is 32 bits on my arm laptop, so that makes sense.
> 

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; 

Ludo

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

Reply via email to