c7segrgb
2.0.0.0
|
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... | |
void c7segrgb_cfg_setup | ( | c7segrgb_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
This function initializes click configuration structure to init state.
void c7segrgb_cs_high | ( | c7segrgb_t * | ctx | ) |
Sets the state high of CS pin function.
ctx | Click object. |
The function sets the state high of CS pin on 7-SEG RGB Click board.
void c7segrgb_cs_low | ( | c7segrgb_t * | ctx | ) |
Sets the state low of CS pin function.
ctx | Click object. |
The function sets the state low of CS pin on 7-SEG RGB Click board.
float c7segrgb_get_delay_value | ( | uint8_t | cyc_num | ) |
Get delay value.
cyc_num | Number of CPU cycles. |
This function get delay value which depending on device clock value in MHz.
C7SEGRGB_RETVAL c7segrgb_init | ( | c7segrgb_t * | ctx, |
c7segrgb_cfg_t * | cfg | ||
) |
Initialization function.
c7segrgb | Click object. |
cfg | Click configuration structure. |
This function initializes all necessary pins and peripherals used for this click.
void c7segrgb_pwm_high | ( | c7segrgb_t * | ctx | ) |
Sets the state high of PWM pin function.
ctx | Click object. |
The function sets the state high of PWM pin on 7-SEG RGB Click board.
void c7segrgb_pwm_low | ( | c7segrgb_t * | ctx | ) |
Sets the state low of PWM pin function.
ctx | Click object. |
The function sets the state low of PWM pin on 7-SEG RGB Click board.