capextend3 2.0.0.0

Functions

void capextend3_cfg_setup (capextend3_cfg_t *cfg)
 Config Object Initialization function.
 
CAPEXTEND3_RETVAL capextend3_init (capextend3_t *ctx, capextend3_cfg_t *cfg)
 Initialization function.
 
uint8_t capextend3_touch_0 (capextend3_t *ctx)
 Function reads state of AN pin.
 
uint8_t capextend3_touch_1 (capextend3_t *ctx)
 Function reads state of RST pin.
 
uint8_t capextend3_touch_2 (capextend3_t *ctx)
 Function reads state of CS pin.
 
uint8_t capextend3_touch_3 (capextend3_t *ctx)
 Function reads state of INT pin.
 
uint8_t capextend3_touch_4 (capextend3_t *ctx)
 Function reads state of PWM pin.
 

Detailed Description

Function Documentation

◆ capextend3_cfg_setup()

void capextend3_cfg_setup ( capextend3_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ capextend3_init()

CAPEXTEND3_RETVAL capextend3_init ( capextend3_t * ctx,
capextend3_cfg_t * cfg )

Initialization function.

Parameters
capextend3Click object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ capextend3_touch_0()

uint8_t capextend3_touch_0 ( capextend3_t * ctx)

Function reads state of AN pin.

Parameters
ctxClick object.
Returns
state of AN pin ( 1 ) - button 0 is off ( 0 ) - button 0 is on

◆ capextend3_touch_1()

uint8_t capextend3_touch_1 ( capextend3_t * ctx)

Function reads state of RST pin.

Parameters
ctxClick object.
Returns
state of RST pin ( 1 ) - button 1 is off ( 0 ) - button 1 is on

◆ capextend3_touch_2()

uint8_t capextend3_touch_2 ( capextend3_t * ctx)

Function reads state of CS pin.

Parameters
ctxClick object.
Returns
state of CS pin ( 1 ) - button 2 is off ( 0 ) - button 2 is on

◆ capextend3_touch_3()

uint8_t capextend3_touch_3 ( capextend3_t * ctx)

Function reads state of INT pin.

Parameters
ctxClick object.
Returns
state of INT pin ( 1 ) - button 3 is off ( 0 ) - button 3 is on

◆ capextend3_touch_4()

uint8_t capextend3_touch_4 ( capextend3_t * ctx)

Function reads state of PWM pin.

Parameters
ctxClick object.
Returns
state of PWM pin ( 1 ) - button 4 is off ( 0 ) - button 4 is on