ipd2017 2.1.0.0
ipd2017.h File Reference

This file contains API for IPD 2017 Click Driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  ipd2017_t
 IPD 2017 Click context object. More...
 
struct  ipd2017_cfg_t
 IPD 2017 Click configuration object. More...
 

Macros

#define IPD2017_NONE_PIN_MASK   0x00
 IPD 2017 description setting.
 
#define IPD2017_OUT1_PIN_MASK   0x01
 
#define IPD2017_OUT2_PIN_MASK   0x02
 
#define IPD2017_OUT3_PIN_MASK   0x04
 
#define IPD2017_OUT4_PIN_MASK   0x08
 
#define IPD2017_ALL_PIN_MASK   0x0F
 
#define IPD2017_PIN_STATE_HIGH   0x01
 IPD 2017 pin state setting.
 
#define IPD2017_PIN_STATE_LOW   0x00
 
#define IPD2017_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  ipd2017_return_value_t { IPD2017_OK = 0 , IPD2017_ERROR = -1 }
 IPD 2017 Click return value data. More...
 

Functions

void ipd2017_cfg_setup (ipd2017_cfg_t *cfg)
 IPD 2017 configuration object setup function.
 
err_t ipd2017_init (ipd2017_t *ctx, ipd2017_cfg_t *cfg)
 IPD 2017 initialization function.
 
void ipd2017_all_pins_set (ipd2017_t *ctx)
 IPD 2017 pin setting function.
 
void ipd2017_all_pins_clear (ipd2017_t *ctx)
 IPD 2017 pin clearing function.
 
err_t ipd2017_set_out_level (ipd2017_t *ctx, uint8_t out_sel, uint8_t state)
 IPD 2017 set output level function.
 
uint8_t ipd2017_get_out_state (ipd2017_t *ctx)
 IPD 2017 get output level function.
 

Detailed Description

This file contains API for IPD 2017 Click Driver.

Enumeration Type Documentation

◆ ipd2017_return_value_t

IPD 2017 Click return value data.

Predefined enum values for driver return values.

Enumerator
IPD2017_OK 
IPD2017_ERROR