[][src]Function battery_ffi::battery_get_state_of_charge

#[no_mangle]
pub unsafe extern "C" fn battery_get_state_of_charge(
    ptr: *const Battery
) -> c_float

Returns battery state of charge as a percentage value from 0.0 to 100.0.

Panics

This function will panic if passed pointer is NULL