|
hbridge2 2.2.0
|
This file contains API for H BRIDGE 2 Click driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"Go to the source code of this file.
Data Structures | |
| struct | hbridge2_t |
| Click ctx object definition. More... | |
| struct | hbridge2_cfg_t |
| Click configuration structure definition. More... | |
Macros | |
| #define | HBRIDGE2_MAP_MIKROBUS(cfg, mikrobus) |
| #define | HBRIDGE2_RETVAL uint8_t |
| #define | HBRIDGE2_OK 0x00 |
| #define | HBRIDGE2_INIT_ERROR 0xFF |
| #define | HBRIDGE2_OUT1_H_OUT2_H 0x00 |
| #define | HBRIDGE2_OUT1_H_OUT2_L 0x01 |
| #define | HBRIDGE2_OUT1_L_OUT2_H 0x02 |
| #define | HBRIDGE2_OUT1_Z_OUT2_Z 0x03 |
| #define | HBRIDGE2_DISABLE 0x00 |
| #define | HBRIDGE2_ENABLE 0x01 |
| #define | HBRIDGE2_GOUT_HIGH 0x00 |
| #define | HBRIDGE2_GOUT_LOW 0x01 |
Functions | |
| void | hbridge2_cfg_setup (hbridge2_cfg_t *cfg) |
| Config Object Initialization function. | |
| HBRIDGE2_RETVAL | hbridge2_init (hbridge2_t *ctx, hbridge2_cfg_t *cfg) |
| Initialization function. | |
| uint8_t | hbridge2_set_output (hbridge2_t *ctx, uint8_t out_state) |
| Output Set function. | |
| void | hbridge2_enable (hbridge2_t *ctx, uint8_t state) |
| Enable function. | |
| void | hbridge2_set_gout (hbridge2_t *ctx, uint8_t state) |
| GOUT Set function. | |
This file contains API for H BRIDGE 2 Click driver.