[][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.

Returns

If value is not available, function returns max possible value for float type (1E+37).

Panics

This function will panic if passed pointer is NULL