c420mat 2.0.0.0
Public function

Functions

void c420mat_cfg_setup (c420mat_cfg_t *cfg)
 Config Object Initialization function.
 
C420MAT_RETVAL c420mat_init (c420mat_t *ctx, c420mat_cfg_t *cfg)
 Initialization function.
 
void c420mat_generic_transfer (c420mat_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len)
 Generic transfer function.
 
void c420mat_dac_output (c420mat_t *ctx, uint16_t value_dac)
 c420mat_dac_output.
 
void c420mat_set_i_out (c420mat_t *ctx, uint8_t i_out)
 t40ma_set_vout.
 

Detailed Description

Function Documentation

◆ c420mat_cfg_setup()

void c420mat_cfg_setup ( c420mat_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.

◆ c420mat_dac_output()

void c420mat_dac_output ( c420mat_t * ctx,
uint16_t value_dac )

c420mat_dac_output.

Parameters
ctxClick object.
value_dac12 bit value from 0 to 4095.

@description This function sets the output of DAC.

◆ c420mat_generic_transfer()

void c420mat_generic_transfer ( c420mat_t * ctx,
uint8_t * wr_buf,
uint16_t wr_len,
uint8_t * rd_buf,
uint16_t rd_len )

Generic transfer function.

Parameters
ctxClick object.
wr_bufWrite data buffer
wr_lenNumber of byte in write data buffer
rd_bufRead data buffer
rd_lenNumber of byte in read data buffer

@description Generic SPI transfer, for sending and receiving packages

◆ c420mat_init()

C420MAT_RETVAL c420mat_init ( c420mat_t * ctx,
c420mat_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ c420mat_set_i_out()

void c420mat_set_i_out ( c420mat_t * ctx,
uint8_t i_out )

t40ma_set_vout.

Parameters
ctxClick object.
i_outOutput amperage in steps of 0.1mA.

@description This function sets the output current to selected value.