SPIKE-RT C API Reference [English]
An RTOS-based software platform for LEGO® Education SPIKE™.
Loading...
Searching...
No Matches
battery.h
Go to the documentation of this file.
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
35#ifdef __cplusplus
36extern "C" {
37#endif
38
48uint16_t hub_battery_get_voltage(void);
49
59uint16_t hub_battery_get_current(void);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif // _HUB_BATTERY_H_
66
uint16_t hub_battery_get_voltage(void)
Retrieve the battery voltage.
Definition battery.c:15
uint16_t hub_battery_get_current(void)
Retrieve the battery current.
Definition battery.c:25