[][src]Function battery_ffi::battery_get_temperature

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

Returns battery temperature in Kelvin.

Returns

If value is not available, function returns NaN.

Panics

This function will panic if passed pointer is NULL