macro_rules! create_battery_func {
    ($fn:ident, $property:ident, $ty:ty, $int:ident) => { ... };
}