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 0x01 |
Power MUX description setting. More... | |
#define | POWERMUX_INPUT_CHANNEL_2_ON 0x02 |
#define | POWERMUX_INPUT_CHANNEL_OFF 0x03 |
#define | POWERMUX_INPUT_CHANNEL_AUTO 0x04 |
#define | POWERMUX_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. More... | |
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. More... | |
err_t | powermux_init (powermux_t *ctx, powermux_cfg_t *cfg) |
Power MUX initialization function. More... | |
void | powermux_default_cfg (powermux_t *ctx) |
Power MUX default configuration function. More... | |
uint8_t | powermux_int_pin_read (powermux_t *ctx) |
Power MUX pin reading function. More... | |
void | powermux_set_mode (powermux_t *ctx, uint8_t mode) |
Power MUX mode set function. More... | |
This file contains API for Power MUX Click Driver.