21 lines
347 B
C
21 lines
347 B
C
|
|
#ifndef BATTERY_STATUS_EVENT_H
|
||
|
|
#define BATTERY_STATUS_EVENT_H
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#include <app_event_manager.h>
|
||
|
|
#include <app_event_manager_profiler_tracer.h>
|
||
|
|
|
||
|
|
struct battery_status_event
|
||
|
|
{
|
||
|
|
struct app_event_header header;
|
||
|
|
bool charging;
|
||
|
|
bool full;
|
||
|
|
uint8_t soc;
|
||
|
|
};
|
||
|
|
|
||
|
|
APP_EVENT_TYPE_DECLARE(battery_status_event);
|
||
|
|
|
||
|
|
#endif
|