LoRa-BLE-Sensor
|
This is a library to keep track of the PMIC and its configuration. More...
#include "sensor_pmic.h"
#include <zephyr/logging/log.h>
#include <zephyr/drivers/led.h>
#include <zephyr/drivers/charger.h>
#include <zephyr/drivers/mfd/npm1300.h>
#include <zephyr/drivers/sensor/npm1300_charger.h>
Functions | |
LOG_MODULE_REGISTER (SENSOR_PMIC, LOG_LEVEL_INF) | |
int | sensor_pmic_init_with_ops (const sensor_pmic_ops_t *ops) |
Initialize the PMIC with custom operations. | |
int | sensor_pmic_init (void) |
Initialize the PMIC, with default operations. | |
int | sensor_pmic_led_on (void) |
Turn on the LED. | |
int | sensor_pmic_led_off (void) |
Turn off the LED. | |
int | sensor_pmic_status_get (pmic_sensor_status_t *status) |
Get the status of the PMIC sensors. | |
This is a library to keep track of the PMIC and its configuration.
int sensor_pmic_init | ( | void | ) |
Initialize the PMIC, with default operations.
int sensor_pmic_init_with_ops | ( | const sensor_pmic_ops_t * | ops | ) |
Initialize the PMIC with custom operations.
ops | Pointer to operations structure. If NULL, default operations will be used |
int sensor_pmic_led_off | ( | void | ) |
Turn off the LED.
int sensor_pmic_led_on | ( | void | ) |
Turn on the LED.
int sensor_pmic_status_get | ( | pmic_sensor_status_t * | status | ) |
Get the status of the PMIC sensors.
status | Pointer to the status structure |