#ifndef CHARGER_API_H #define CHARGER_API_H #include #ifdef __cplusplus #if __cplusplus extern "C" { #endif #endif struct charger_class_ops { uint32_t (*open)(void); uint32_t (*close)(void); uint32_t (*sample_event)(uint32_t *battery); float (*sample_status_event)(void); }; struct charger_class_ops *tjd_driver_charger_get_ops(void); #ifdef __cplusplus #if __cplusplus } #endif #endif #endif