ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
Loading...
Searching...
No Matches
ruuvi_interface_power.h
Go to the documentation of this file.
1#ifndef RUUVI_INTERFACE_POWER_H
2#define RUUVI_INTERFACE_POWER_H
18#if RI_POWER_ENABLED
19# define RUUVI_NRF5_SDK15_POWER_ENABLED RUUVI_NRF5_SDK15_ENABLED
20#endif
21#include "ruuvi_driver_error.h"
22#include <stdbool.h>
23#include <stddef.h>
24#include <stdint.h>
25
29typedef struct
30{
31 unsigned int DCDC_INTERNAL : 1;
32 unsigned int DCDC_HV : 1;
34
46
55void ri_power_reset (void);
56
66
68#endif
uint32_t rd_status_t
bitfield for representing errors
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
rd_status_t ri_power_regulators_enable(const ri_power_regulators_t regulators)
Enable given regulators.
void ri_power_enter_bootloader(void)
Enter bootloader.
void ri_power_reset(void)
Reset IC.
Enable implementation selected by application.
unsigned int DCDC_HV
DC/DC for high voltage, i.e. nRF52840 USB.
unsigned int DCDC_INTERNAL
DC/DC for internal circuitry, i.e. nRF52832 radio.