[][src]Function battery_ffi::battery_get_cycle_count

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

Returns battery cycles count.

Returns

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

Panics

This function will panic if passed pointer is NULL