expand4 2.0.0.0
|
Functions | |
void | expand4_cfg_setup (expand4_cfg_t *cfg) |
Config Object Initialization function. | |
EXPAND4_RETVAL | expand4_init (expand4_t *ctx, expand4_cfg_t *cfg) |
Initialization function. | |
void | expand4_enable_output (expand4_t *ctx) |
Enable output function. | |
void | expand4_disable_output (expand4_t *ctx) |
Disable output function. | |
void | expand4_reset (expand4_t *ctx) |
Clear register function. | |
void | expand4_write_data (expand4_t *ctx, uint8_t write_command) |
void | expand4_turn_on_by_position (expand4_t *ctx, uint8_t position) |
void expand4_cfg_setup | ( | expand4_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void expand4_disable_output | ( | expand4_t * | ctx | ) |
Disable output function.
ctx | Click object. |
@description Function turn off output buffers set PWM pin high
void expand4_enable_output | ( | expand4_t * | ctx | ) |
Enable output function.
ctx | Click object. |
@description Function turn on output buffers - set PWM pin low
EXPAND4_RETVAL expand4_init | ( | expand4_t * | ctx, |
expand4_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void expand4_reset | ( | expand4_t * | ctx | ) |
Clear register function.
ctx | Click object. |
@description Function clear input TPIC6A595 shift register.
void expand4_turn_on_by_position | ( | expand4_t * | ctx, |
uint8_t | position ) |
@breif Turn on output pin masks by position function
ctx | Click object. |
position | position from 0 to 7 |
@description Function turning on output pin masks by position:
void expand4_write_data | ( | expand4_t * | ctx, |
uint8_t | write_command ) |
@breif Generic write data function
ctx | Click object. |
write_command | 8-bit data to write |
@description Function write 8-bit data function to TPIC6A595 shift register.