mirror of
https://gitlab.com/hyperglitch/jellyfish.git
synced 2025-12-28 07:26:29 +00:00
24 lines
517 B
C
24 lines
517 B
C
/*
|
|
* SPDX-FileCopyrightText: 2025 Igor Brkic <igor@hyperglitch.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
#ifndef AUX_POWER_H
|
|
#define AUX_POWER_H
|
|
|
|
void jf_vaux_init();
|
|
bool jf_vaux_set_voltage(int32_t voltage_mv, bool from_isr);
|
|
int32_t jf_vaux_get_voltage();
|
|
|
|
bool jf_vaux_set_current_limit(int32_t current_ma);
|
|
int32_t jf_vaux_get_current_limit();
|
|
|
|
int32_t jf_vaux_measure_voltage();
|
|
int32_t jf_vaux_measure_current();
|
|
|
|
void jf_vaux_enable(bool en);
|
|
bool jf_vaux_is_enabled();
|
|
|
|
#endif //AUX_POWER_H
|