/* * call-seq: * Battery.mA # => Fixnum * * Get the current draw from the battery * * Returns current in mA */ static mrb_value mrb_battery_mA(mrb_state *mrb, mrb_value self) { return mrb_fixnum_value(ev3_battery_current_mA()); }
/* * Bridge: get_battery_current */ i_t EV3B_get_battery_current() { return ev3_battery_current_mA(); }
int CwrBattery::GetmA() // バッテリの電流を取得する.(mA) { return ev3_battery_current_mA(); }