powermux 2.0.0.0
|
This file contains API for Power MUX Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | powermux_t |
Power MUX Click context object. More... | |
struct | powermux_cfg_t |
Power MUX Click configuration object. More... | |
Macros | |
#define | POWERMUX_INPUT_CHANNEL_1_ON 0 |
Power MUX description setting. | |
#define | POWERMUX_INPUT_CHANNEL_2_ON 1 |
#define | POWERMUX_INPUT_CHANNEL_OFF 2 |
#define | POWERMUX_INPUT_CHANNEL_AUTO 3 |
#define | POWERMUX_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | powermux_return_value_t { POWERMUX_OK = 0 , POWERMUX_ERROR = -1 } |
Power MUX Click return value data. More... | |
Functions | |
void | powermux_cfg_setup (powermux_cfg_t *cfg) |
Power MUX configuration object setup function. | |
err_t | powermux_init (powermux_t *ctx, powermux_cfg_t *cfg) |
Power MUX initialization function. | |
void | powermux_default_cfg (powermux_t *ctx) |
Power MUX default configuration function. | |
uint8_t | powermux_int_pin_read (powermux_t *ctx) |
Power MUX pin reading function. | |
void | powermux_set_mode (powermux_t *ctx, uint8_t mode) |
Power MUX mode set function. | |
This file contains API for Power MUX Click Driver.