battery_ffi
#[no_mangle] pub unsafe extern "C" fn battery_get_energy(ptr: *const Battery) -> c_float
Returns battery energy (in joule).
joule
This function will panic if passed pointer is NULL
NULL