ups 2.0.0.0
|
This file contains API for UPS Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | ups_t |
Click ctx object definition. More... | |
struct | ups_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | UPS_MAP_MIKROBUS(cfg, mikrobus) |
#define | UPS_RETVAL uint8_t |
#define | UPS_OK 0x00 |
#define | UPS_INIT_ERROR 0xFF |
#define | UPS_MODE_ACTIVE 1 |
#define | UPS_MODE_SLEEP 0 |
Functions | |
void | ups_cfg_setup (ups_cfg_t *cfg) |
Config Object Initialization function. | |
UPS_RETVAL | ups_init (ups_t *ctx, ups_cfg_t *cfg) |
Initialization function. | |
void | usp_set_mode (ups_t *ctx, uint8_t mode) |
Functions for settings chip mode. | |
uint8_t | ups_get_power_good (ups_t *ctx) |
Functions for reading PGD state. | |
This file contains API for UPS Click driver.