digipot6 2.0.0.0

Functions

void digipot6_cfg_setup (digipot6_cfg_t *cfg)
 Config Object Initialization function.
 
DIGIPOT6_RETVAL digipot6_init (digipot6_t *ctx, digipot6_cfg_t *cfg)
 Initialization function.
 
void digipot6_default_cfg (digipot6_t *ctx)
 Click Default Configuration function.
 
void digipot6_write_data (digipot6_t *ctx, uint8_t reg, uint8_t w_data)
 Write data function.
 
void digipot6_write_wiper_cmd (digipot6_t *ctx, uint8_t cmd)
 Write wiper command function.
 
uint8_t digipot6_read_data (digipot6_t *ctx, uint8_t reg)
 Read data function.
 
void digipot6_set_resistor (digipot6_t *ctx, uint8_t state, uint8_t mask, uint8_t tcon)
 Set resistor function.
 

Detailed Description

Function Documentation

◆ digipot6_cfg_setup()

void digipot6_cfg_setup ( digipot6_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.

◆ digipot6_default_cfg()

void digipot6_default_cfg ( digipot6_t * ctx)

Click Default Configuration function.

Parameters
ctxClick object.

@description This function executes default configuration for DIGI POT 6 click.

◆ digipot6_init()

DIGIPOT6_RETVAL digipot6_init ( digipot6_t * ctx,
digipot6_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ digipot6_read_data()

uint8_t digipot6_read_data ( digipot6_t * ctx,
uint8_t reg )

Read data function.

Parameters
ctxClick object.
regRegister address.

@description This function reads data from the specified register address.

◆ digipot6_set_resistor()

void digipot6_set_resistor ( digipot6_t * ctx,
uint8_t state,
uint8_t mask,
uint8_t tcon )

Set resistor function.

Parameters
ctxClick object.
stateResistor state.
maskModule mask.
tconTCON module.

@description This function reads data from the specified register address.

◆ digipot6_write_data()

void digipot6_write_data ( digipot6_t * ctx,
uint8_t reg,
uint8_t w_data )

Write data function.

Parameters
ctxClick object.
regRegister address.
w_dataWrite data.

@description This function writes data to the specified address.

◆ digipot6_write_wiper_cmd()

void digipot6_write_wiper_cmd ( digipot6_t * ctx,
uint8_t cmd )

Write wiper command function.

Parameters
ctxClick object.
cmdCommand.

@description This function writes a wiper configuration command to the click module.