c7segrgb  2.0.0.0
Functions
Public function

Functions

void c7segrgb_cfg_setup (c7segrgb_cfg_t *cfg)
 Config Object Initialization function. More...
 
C7SEGRGB_RETVAL c7segrgb_init (c7segrgb_t *ctx, c7segrgb_cfg_t *cfg)
 Initialization function. More...
 
void c7segrgb_cs_low (c7segrgb_t *ctx)
 Sets the state low of CS pin function. More...
 
void c7segrgb_cs_high (c7segrgb_t *ctx)
 Sets the state high of CS pin function. More...
 
void c7segrgb_pwm_low (c7segrgb_t *ctx)
 Sets the state low of PWM pin function. More...
 
void c7segrgb_pwm_high (c7segrgb_t *ctx)
 Sets the state high of PWM pin function. More...
 
float c7segrgb_get_delay_value (uint8_t cyc_num)
 Get delay value. More...
 

Detailed Description

Function Documentation

◆ c7segrgb_cfg_setup()

void c7segrgb_cfg_setup ( c7segrgb_cfg_t cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ c7segrgb_cs_high()

void c7segrgb_cs_high ( c7segrgb_t ctx)

Sets the state high of CS pin function.

Parameters
ctxClick object.

The function sets the state high of CS pin on 7-SEG RGB Click board.

◆ c7segrgb_cs_low()

void c7segrgb_cs_low ( c7segrgb_t ctx)

Sets the state low of CS pin function.

Parameters
ctxClick object.

The function sets the state low of CS pin on 7-SEG RGB Click board.

◆ c7segrgb_get_delay_value()

float c7segrgb_get_delay_value ( uint8_t  cyc_num)

Get delay value.

Parameters
cyc_numNumber of CPU cycles.
Returns
Delay value needed for Delay_Cyc function

This function get delay value which depending on device clock value in MHz.

◆ c7segrgb_init()

C7SEGRGB_RETVAL c7segrgb_init ( c7segrgb_t ctx,
c7segrgb_cfg_t cfg 
)

Initialization function.

Parameters
c7segrgbClick object.
cfgClick configuration structure.

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

◆ c7segrgb_pwm_high()

void c7segrgb_pwm_high ( c7segrgb_t ctx)

Sets the state high of PWM pin function.

Parameters
ctxClick object.

The function sets the state high of PWM pin on 7-SEG RGB Click board.

◆ c7segrgb_pwm_low()

void c7segrgb_pwm_low ( c7segrgb_t ctx)

Sets the state low of PWM pin function.

Parameters
ctxClick object.

The function sets the state low of PWM pin on 7-SEG RGB Click board.