38 #include "drv_digital_out.h" 39 #include "drv_digital_in.h" 51 #define C7SEGRGB_MAP_MIKROBUS( cfg, mikrobus ) \ 52 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \ 53 cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ) 60 #define C7SEGRGB_RETVAL uint8_t 62 #define C7SEGRGB_OK 0x00 63 #define C7SEGRGB_INIT_ERROR 0xFF 70 #define C7SEGRGB_ONE 0x06 71 #define C7SEGRGB_TWO 0x5B 72 #define C7SEGRGB_THREE 0x4F 73 #define C7SEGRGB_FOUR 0x66 74 #define C7SEGRGB_FIVE 0x6D 75 #define C7SEGRGB_SIX 0x7D 76 #define C7SEGRGB_SEVEN 0x07 77 #define C7SEGRGB_EIGHT 0x7F 78 #define C7SEGRGB_NINE 0x6F 79 #define C7SEGRGB_ZERO 0x3F 80 #define C7SEGRGB_POINT 0x80 196 #endif // _C7SEGRGB_H_ C7SEGRGB_RETVAL c7segrgb_init(c7segrgb_t *ctx, c7segrgb_cfg_t *cfg)
Initialization function.
void c7segrgb_cs_high(c7segrgb_t *ctx)
Sets the state high of CS pin function.
pin_name_t pwm
Definition: c7segrgb.h:112
Click ctx object definition.
Definition: c7segrgb.h:95
pin_name_t cs
Definition: c7segrgb.h:111
#define C7SEGRGB_RETVAL
Definition: c7segrgb.h:60
float c7segrgb_get_delay_value(uint8_t cyc_num)
Get delay value.
void c7segrgb_pwm_high(c7segrgb_t *ctx)
Sets the state high of PWM pin function.
digital_out_t cs
Definition: c7segrgb.h:99
digital_out_t pwm
Definition: c7segrgb.h:100
void c7segrgb_cs_low(c7segrgb_t *ctx)
Sets the state low of CS pin function.
Click configuration structure definition.
Definition: c7segrgb.h:107
void c7segrgb_cfg_setup(c7segrgb_cfg_t *cfg)
Config Object Initialization function.
void c7segrgb_pwm_low(c7segrgb_t *ctx)
Sets the state low of PWM pin function.