Expand description
§C2Rust transpiled header contents (static inline functions
Types in here are distinct from those created in the main module (using bindgen); unifying those will be part of bindgen’s #1334, but it’s a long way there.
Use these functions through the re-export in the main module, for the C headers may flip-flop between static inline and linked.
Some special treatment has been applied in the course of the transpilation process:
- All functions were made
pub
- All functions have their
extern "C"
removed. Any C component would already use it via their original definitions, there is no need to re-export them or to restrain their ABI (as they are here for efficient inlining into Rust code only). - For C const initializers (eg.
#define MUTEX_INIT { { NULL } }
), there is no way for a transpiler to recognize which type this is actually for. That information is tracked manually inbuild.rs
as a list of known initializers. They get turned into const functions in the style offn init_MUTEX_INIT() -> mutex_t
.
Macros§
- llvm_
asm 🔒Compatibility macro that looks up assembly in the deprecatedllvm_asm!
style in a manually manged list of known short snippets mapped toasm!
equivalents.
Structs§
Constants§
Statics§
- ITM_
RxBuffer 🔒 ⚠ - ZTIMER_
MSEC 🔒 ⚠ - _impure_
ptr 🔒 ⚠ - mtd_
dev_ 🔒 ⚠xfa - mtd_
dev_ 🔒 ⚠xfa_ end - sched_
runqueues 🔒 ⚠ - sched_
threads 🔒 ⚠
Functions§
- __
srget_ 🔒 ⚠r - __
swbuf_ 🔒 ⚠r - _assert_
panic 🔒 ⚠ - _clist_
sort 🔒 ⚠ - _mbox_
get 🔒 ⚠ - _mbox_
put 🔒 ⚠ - bf_
clear_ 🔒 ⚠all - bf_
set_ 🔒 ⚠all - bluetil_
ad_ 🔒 ⚠add - bluetil_
ad_ 🔒 ⚠init - coap_
get_ 🔒 ⚠block - coap_
opt_ 🔒 ⚠finish - coap_
opt_ 🔒 ⚠remove - cose_
hdr_ 🔒 ⚠insert - event_
is_ 🔒 ⚠queued - event_
post 🔒 ⚠ - event_
wait_ 🔒 ⚠multi - evtimer_
add 🔒 ⚠ - evtimer_
init 🔒 ⚠ - gcoap_
req_ 🔒 ⚠send - gcoap_
resp_ 🔒 ⚠init - gpio_
clear 🔒 ⚠ - gpio_
set 🔒 ⚠ - gpio_
toggle 🔒 ⚠ - inet_
csum_ 🔒 ⚠slice - Symbol indicating untranslated
llvm_asm!
code. - memcmp 🔒 ⚠
- memcpy 🔒 ⚠
- memset 🔒 ⚠
- msg_
send_ 🔒 ⚠int - netif_
get_ 🔒 ⚠opt - pm_off 🔒 ⚠
- printf 🔒 ⚠
- random_
uint32 🔒 ⚠ - sha2xx_
final 🔒 ⚠ - sha2xx_
update 🔒 ⚠ - shell_
run_ 🔒 ⚠once - sock_
ip_ 🔒 ⚠recv_ aux - sock_
ip_ 🔒 ⚠send_ aux - sock_
tl_ 🔒 ⚠ep_ equal - sock_
tl_ 🔒 ⚠ep_ fmt - sock_
tl_ 🔒 ⚠name2ep - sock_
tl_ 🔒 ⚠str2ep - sock_
udp_ 🔒 ⚠close - sock_
udp_ 🔒 ⚠create - sock_
urlpath 🔒 ⚠ - strlen 🔒 ⚠
- timex_
set 🔒 ⚠ - ztimer_
is_ 🔒 ⚠set