opto4 2.0.0.0
Public function

Functions

void opto4_cfg_setup (opto4_cfg_t *cfg)
 Config Object Initialization function.
 
OPTO4_RETVAL opto4_init (opto4_t *ctx, opto4_cfg_t *cfg)
 Initialization function.
 
void opto4_default_cfg (opto4_t *ctx)
 Click Default Configuration function.
 
void opto4_output_enable (opto4_t *ctx, uint8_t enable)
 Function for output enable or disable.
 

Detailed Description

Function Documentation

◆ opto4_cfg_setup()

void opto4_cfg_setup ( opto4_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.

◆ opto4_default_cfg()

void opto4_default_cfg ( opto4_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for OPTO 4 click.

◆ opto4_init()

OPTO4_RETVAL opto4_init ( opto4_t * ctx,
opto4_cfg_t * cfg )

Initialization function.

Parameters
opto4Click object.
cfgClick configuration structure.

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

◆ opto4_output_enable()

void opto4_output_enable ( opto4_t * ctx,
uint8_t enable )

Function for output enable or disable.

Parameters
ctxClick object.
enableEnable

@description This function sets the status enabled or disabled.