ipd2015 2.1.0.0
ipd2015.h File Reference

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

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

Go to the source code of this file.

Data Structures

struct  ipd2015_t
 IPD 2015 Click context object. More...
 
struct  ipd2015_cfg_t
 IPD 2015 Click configuration object. More...
 

Macros

#define IPD2015_NONE_PIN_MASK   0x00
 IPD 2015 description setting.
 
#define IPD2015_OUT1_PIN_MASK   0x01
 
#define IPD2015_OUT2_PIN_MASK   0x02
 
#define IPD2015_OUT3_PIN_MASK   0x04
 
#define IPD2015_OUT4_PIN_MASK   0x08
 
#define IPD2015_ALL_PIN_MASK   0x0F
 
#define IPD2015_PIN_STATE_HIGH   0x01
 IPD 2015 pin state setting.
 
#define IPD2015_PIN_STATE_LOW   0x00
 
#define IPD2015_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  ipd2015_return_value_t { IPD2015_OK = 0 , IPD2015_ERROR = -1 }
 IPD 2015 Click return value data. More...
 

Functions

void ipd2015_cfg_setup (ipd2015_cfg_t *cfg)
 IPD 2015 configuration object setup function.
 
err_t ipd2015_init (ipd2015_t *ctx, ipd2015_cfg_t *cfg)
 IPD 2015 initialization function.
 
void ipd2015_all_pins_set (ipd2015_t *ctx)
 IPD 2015 pin setting function.
 
void ipd2015_all_pins_clear (ipd2015_t *ctx)
 IPD 2015 pin clearing function.
 
err_t ipd2015_set_out_level (ipd2015_t *ctx, uint8_t out_sel, uint8_t state)
 IPD 2015 set output level function.
 
uint8_t ipd2015_get_out_state (ipd2015_t *ctx)
 IPD 2015 get output level function.
 

Detailed Description

This file contains API for IPD 2015 Click Driver.

Enumeration Type Documentation

◆ ipd2015_return_value_t

IPD 2015 Click return value data.

Predefined enum values for driver return values.

Enumerator
IPD2015_OK 
IPD2015_ERROR