easypull 2.1.0.0
easypull.h File Reference

This file contains API for EasyPull Click Driver. More...

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

Go to the source code of this file.

Data Structures

struct  easypull_t
 EasyPull Click context object. More...
 
struct  easypull_cfg_t
 EasyPull Click configuration object. More...
 

Macros

#define EASYPULL_PIN_STATE_HIGH   0x01
 EasyPull description setting.
 
#define EASYPULL_PIN_STATE_LOW   0x00
 
#define EASYPULL_MAP_MIKROBUS(cfg, mikrobus)
 MikroBUS pin mapping.
 

Enumerations

enum  easypull_return_value_t { EASYPULL_OK = 0 , EASYPULL_ERROR = -1 }
 EasyPull Click return value data. More...
 

Functions

void easypull_cfg_setup (easypull_cfg_t *cfg)
 EasyPull configuration object setup function.
 
err_t easypull_init (easypull_t *ctx, easypull_cfg_t *cfg)
 EasyPull initialization function.
 
uint8_t easypull_get_an_pin (easypull_t *ctx)
 EasyPull AN pin reading function.
 
uint8_t easypull_get_rst_pin (easypull_t *ctx)
 EasyPull RST pin reading function.
 
uint8_t easypull_get_cs_pin (easypull_t *ctx)
 EasyPull CS pin reading function.
 
uint8_t easypull_get_pwm_pin (easypull_t *ctx)
 EasyPull PWM pin reading function.
 
uint8_t easypull_get_int_pin (easypull_t *ctx)
 EasyPull INT pin reading function.
 

Detailed Description

This file contains API for EasyPull Click Driver.

Enumeration Type Documentation

◆ easypull_return_value_t

EasyPull Click return value data.

Predefined enum values for driver return values.

Enumerator
EASYPULL_OK 
EASYPULL_ERROR