rpi_pico_sdk/
ctypes.rs

1//! ctypes for no-std
2
3// choose from schar / uchar
4pub type c_char = self::c_uchar;
5
6// for 32 bit arm
7pub type c_int = i32;
8pub type c_uint = u32;
9
10// for pointer width = 16 or 32
11pub type c_long = i32;
12pub type c_ulong = u32;
13
14// for any other
15pub type int8_t = i8;
16pub type int16_t = i16;
17pub type int32_t = i32;
18pub type int64_t = i64;
19
20pub type uint8_t = u8;
21pub type uint16_t = u16;
22pub type uint32_t = u32;
23pub type uint64_t = u64;
24
25pub type c_schar = i8;
26pub type c_short = i16;
27pub type c_longlong = i64;
28
29pub type c_uchar = u8;
30pub type c_ushort = u16;
31pub type c_ulonglong = u64;
32
33pub type c_float = f32;
34pub type c_double = f64;
35
36pub type intmax_t = i64;
37pub type uintmax_t = u64;
38
39pub type size_t = usize;
40pub type ptrdiff_t = isize;
41pub type intptr_t = isize;
42pub type uintptr_t = usize;
43pub type ssize_t = isize;
44
45pub type c_void = core::ffi::c_void;