opto2 2.0.0.0
Public function

Functions

void opto2_cfg_setup (opto2_cfg_t *cfg)
 Config Object Initialization function.
 
OPTO2_RETVAL opto2_init (opto2_t *ctx, opto2_cfg_t *cfg)
 Initialization function.
 
uint8_t opto2_check_out1 (opto2_t *ctx)
 OUT1 Check function.
 
uint8_t opto2_check_out2 (opto2_t *ctx)
 OUT2 Check function.
 
uint8_t opto2_check_out3 (opto2_t *ctx)
 OUT3 Check function.
 
uint8_t opto2_check_out4 (opto2_t *ctx)
 OUT4 Check function.
 

Detailed Description

Function Documentation

◆ opto2_cfg_setup()

void opto2_cfg_setup ( opto2_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.

◆ opto2_check_out1()

uint8_t opto2_check_out1 ( opto2_t * ctx)

OUT1 Check function.

Parameters
ctxClick object.

@description This function checks the state of OUT1 pin.

◆ opto2_check_out2()

uint8_t opto2_check_out2 ( opto2_t * ctx)

OUT2 Check function.

Parameters
ctxClick object.

@description This function checks the state of OUT2 pin.

◆ opto2_check_out3()

uint8_t opto2_check_out3 ( opto2_t * ctx)

OUT3 Check function.

Parameters
ctxClick object.

@description This function checks the state of OUT3 pin..

◆ opto2_check_out4()

uint8_t opto2_check_out4 ( opto2_t * ctx)

OUT4 Check function.

Parameters
ctxClick object.

@description This function checks the state of OUT4 pin..

◆ opto2_init()

OPTO2_RETVAL opto2_init ( opto2_t * ctx,
opto2_cfg_t * cfg )

Initialization function.

Parameters
opto2Click object.
cfgClick configuration structure.

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