driver 2.0.0.0
Public function

Functions

void driver_cfg_setup (driver_cfg_t *cfg)
 Config Object Initialization function.
 
DRIVER_RETVAL driver_init (driver_t *ctx, driver_cfg_t *cfg)
 Initialization function.
 
void driver_set_in1 (driver_t *ctx, uint8_t state)
 IN1 Set function.
 
void driver_set_in2 (driver_t *ctx, uint8_t state)
 IN2 Set function.
 
void driver_set_in3 (driver_t *ctx, uint8_t state)
 IN3 Set function.
 
void driver_set_in4 (driver_t *ctx, uint8_t state)
 IN4 Set function.
 
void driver_set_in5 (driver_t *ctx, uint8_t state)
 IN5 Set function.
 
void driver_set_in6 (driver_t *ctx, uint8_t state)
 IN6 Set function.
 
void driver_set_in7 (driver_t *ctx, uint8_t state)
 IN7 Set function.
 

Detailed Description

Function Documentation

◆ driver_cfg_setup()

void driver_cfg_setup ( driver_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.

◆ driver_init()

DRIVER_RETVAL driver_init ( driver_t * ctx,
driver_cfg_t * cfg )

Initialization function.

Parameters
driverClick object.
cfgClick configuration structure.

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

◆ driver_set_in1()

void driver_set_in1 ( driver_t * ctx,
uint8_t state )

IN1 Set function.

Parameters
ctxClick object.
state0 - OUT1 ON, 1 - OUT1 OFF.

@description This function determines state of output 1 (OUT1).

◆ driver_set_in2()

void driver_set_in2 ( driver_t * ctx,
uint8_t state )

IN2 Set function.

Parameters
ctxClick object.
state0 - OUT2 ON, 1 - OUT2 OFF.

@description This function determines state of output 2 (OUT2).

◆ driver_set_in3()

void driver_set_in3 ( driver_t * ctx,
uint8_t state )

IN3 Set function.

Parameters
ctxClick object.
state0 - OUT3 ON, 1 - OUT3 OFF.

@description This function determines state of output 3 (OUT3).

◆ driver_set_in4()

void driver_set_in4 ( driver_t * ctx,
uint8_t state )

IN4 Set function.

Parameters
state0 - OUT4 ON, 1 - OUT4 OFF

Function determines state of output 4 (OUT4).

◆ driver_set_in5()

void driver_set_in5 ( driver_t * ctx,
uint8_t state )

IN5 Set function.

Parameters
state0 - OUT5 ON, 1 - OUT5 OFF

Function determines state of output 5 (OUT5).

◆ driver_set_in6()

void driver_set_in6 ( driver_t * ctx,
uint8_t state )

IN6 Set function.

Parameters
state0 - OUT6 ON, 1 - OUT6 OFF

Function determines state of output 6 (OUT6).

◆ driver_set_in7()

void driver_set_in7 ( driver_t * ctx,
uint8_t state )

IN7 Set function.

Parameters
state0 - OUT7 ON, 1 - OUT7 OFF

Function determines state of output 7 (OUT7).