[fpc-devel] Problems with fpioctl on ARM debian linuxandFPC2.6
Ludo Brands
ludo.brands at free.fr
Tue Jun 19 20:42:05 CEST 2012
> 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
More information about the fpc-devel
mailing list