[][src]Function battery_ffi::battery_get_cycle_count

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

Returns battery cycles count.

Returns

If value is not available, function returns max possible value for the u32 type (4294967295).

Panics

This function will panic if passed pointer is NULL