SPIKE-RT C API Reference [Japanese]
An RTOS-based software platform for LEGO® Education SPIKE™.
battery.h
[詳解]
1// SPDX-License-Identifier: MIT
2/*
3 * API for the hub built-in button.
4 *
5 * Copyright (c) 2022 Embedded and Real-Time Systems Laboratory,
6 * Graduate School of Information Science, Nagoya Univ., JAPAN
7 */
8
32#ifndef _HUB_BATTERY_H_
33#define _HUB_BATTERY_H_
34
44uint16_t hub_battery_get_voltage(void);
45
55uint16_t hub_battery_get_current(void);
56
57#endif // _HUB_BATTERY_H_
58
uint16_t hub_battery_get_voltage(void)
バッテリーの電圧を取得する.
Definition: battery.c:15
uint16_t hub_battery_get_current(void)
バッテリーの電流を取得する.
Definition: battery.c:25