c16x12 2.0.0.0
|
Functions | |
void | c16x12_cfg_setup (c16x12_cfg_t *cfg) |
Config Object Initialization function. | |
C16X12_RETVAL | c16x12_init (c16x12_t *ctx, c16x12_cfg_t *cfg) |
Initialization function. | |
void | c16x12_default_cfg (c16x12_t *ctx) |
Click Default Configuration function. | |
void | c16x12_generic_write (c16x12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | c16x12_generic_read (c16x12_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | c16x12g_write_reg (c16x12_t *ctx, uint8_t reg, uint8_t c_data) |
Functions for write one byte in register. | |
void | c16x12g_select_page (c16x12_t *ctx, uint8_t page) |
Functions for select page. | |
void | c16x12g_write_page_byte (c16x12_t *ctx, uint16_t reg_addr, uint8_t reg_value) |
Functions for write one byte in register with select page. | |
void | c16x12g_write_page_data (c16x12_t *ctx, uint16_t reg, uint8_t *data_buf, uint8_t n_data) |
Functions for write n byte in registers with select page. | |
uint8_t | c16x12g_read_reg (c16x12_t *ctx, uint8_t reg) |
Functions for read byte from register. | |
void | c16x12g_set_stand_by (c16x12_t *ctx, uint8_t state) |
Functions for sets SDB pin state. | |
void | c16x12g_device_reset (c16x12_t *ctx) |
Functions for device reset. | |
uint8_t | c16x12g_get_interrupt (c16x12_t *ctx) |
Functions for reads interrupt state. | |
void | c16x12g_device_configuration (c16x12_t *ctx) |
Functions for device configuration. | |
void | c16x12g_set_all_leds (c16x12_t *ctx, uint8_t state) |
Functions for sets all LEDs on the state. | |
void | c16x12g_set_global_current_control (c16x12_t *ctx, uint8_t gcc) |
Functions for sets global current for all leds. | |
void | c16x12g_clear_display (c16x12_t *ctx) |
Functions for clear display. | |
void | c16x12g_set_column_state (c16x12_t *ctx, uint8_t col, uint16_t state, uint8_t c_end) |
Functions for sets column state. | |
void | c16x12g_set_leds_mode (c16x12_t *ctx, uint8_t mode) |
Functions for sets LEDs mode. | |
void | c16x12g_set_pmw (c16x12_t *ctx, uint8_t pwm_value) |
Functions for sets PWM for all LEDs. | |
void | c16x12g_set_led (c16x12_t *ctx, uint8_t x_pos, uint8_t y_pos, uint8_t state, uint8_t c_end) |
Functions for sets LEDs state. | |
void | c16x12g_display_byte (c16x12_t *ctx, char ch) |
Functions for display one Byte. | |
void | c16x12g_display_image (c16x12_t *ctx, uint16_t *p_image) |
Functions for display Image. | |
void | c16x12g_display_text (c16x12_t *ctx, char *p_text, uint8_t n_char, uint8_t speed) |
Functions for display text with scroll. | |
void | c16x12g_config_abm (c16x12_t *ctx, uint16_t n_abm, c16x12_abm_t *config) |
Functions for ABM configuration. | |
void | c16x12g_start_abm (c16x12_t *ctx) |
Functions for start new ABM configuration. | |
void c16x12_cfg_setup | ( | c16x12_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c16x12_default_cfg | ( | c16x12_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 16x12 click.
void c16x12_generic_read | ( | c16x12_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void c16x12_generic_write | ( | c16x12_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
C16X12_RETVAL c16x12_init | ( | c16x12_t * | ctx, |
c16x12_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 c16x12g_clear_display | ( | c16x12_t * | ctx | ) |
Functions for clear display.
ctx | Click object. |
void c16x12g_config_abm | ( | c16x12_t * | ctx, |
uint16_t | n_abm, | ||
c16x12_abm_t * | config ) |
Functions for ABM configuration.
ctx | Click object. |
n_abm | Number of the ABM |
config | ABM structure with new configuration |
void c16x12g_device_configuration | ( | c16x12_t * | ctx | ) |
Functions for device configuration.
ctx | Click object. |
void c16x12g_device_reset | ( | c16x12_t * | ctx | ) |
Functions for device reset.
ctx | Click object. |
void c16x12g_display_byte | ( | c16x12_t * | ctx, |
char | ch ) |
Functions for display one Byte.
ctx | Click object. |
ch | The character to be displayed |
void c16x12g_display_image | ( | c16x12_t * | ctx, |
uint16_t * | p_image ) |
Functions for display Image.
ctx | Click object. |
p_image | Image buffer |
void c16x12g_display_text | ( | c16x12_t * | ctx, |
char * | p_text, | ||
uint8_t | n_char, | ||
uint8_t | speed ) |
Functions for display text with scroll.
ctx | Click object. |
p_text | Text buffer |
n_char | Number of the character in the text |
speed | Speed per character in ms |
uint8_t c16x12g_get_interrupt | ( | c16x12_t * | ctx | ) |
Functions for reads interrupt state.
ctx | Click object. |
Interrupt | state on the INT pin |
uint8_t c16x12g_read_reg | ( | c16x12_t * | ctx, |
uint8_t | reg ) |
Functions for read byte from register.
ctx | Click object. |
reg | Register which will be read |
one | byte data which is read from the register |
void c16x12g_select_page | ( | c16x12_t * | ctx, |
uint8_t | page ) |
Functions for select page.
ctx | Click object. |
page | The page to be set |
void c16x12g_set_all_leds | ( | c16x12_t * | ctx, |
uint8_t | state ) |
Functions for sets all LEDs on the state.
ctx | Click object. |
void c16x12g_set_column_state | ( | c16x12_t * | ctx, |
uint8_t | col, | ||
uint16_t | state, | ||
uint8_t | c_end ) |
Functions for sets column state.
ctx | Click object. |
col | Column - from 1 to 12 |
state | 16 bit data - 1 bit is 1 led |
c_end | A variable that indicates whether after this function the setting of a new column is continued or the end is set to be set and everything that has been set so far should be displayed. (_C16X12G_STOP_SETTINGS or _C16X12G_CONTINUE_SETTINGS) |
void c16x12g_set_global_current_control | ( | c16x12_t * | ctx, |
uint8_t | gcc ) |
Functions for sets global current for all leds.
ctx | Click object. |
gcc | Gl oba current |
void c16x12g_set_led | ( | c16x12_t * | ctx, |
uint8_t | x_pos, | ||
uint8_t | y_pos, | ||
uint8_t | state, | ||
uint8_t | c_end ) |
Functions for sets LEDs state.
ctx | Click object. |
x_pos | X poistion of the LEDs (1 is bottom - 12 is up) |
y_pos | Y poistion of the LEDs (1 is right - 12 is left) |
state | LEDs state (ON or OFF) |
c_end | A variable that indicates whether after this function the setting of a new LEDs is continued or the end is set to be set and everything that has been set so far should be displayed. (_C16X12G_STOP_SETTINGS or _C16X12G_CONTINUE_SETTINGS) |
void c16x12g_set_leds_mode | ( | c16x12_t * | ctx, |
uint8_t | mode ) |
Functions for sets LEDs mode.
ctx | Click object. |
mode | LEDs mode |
Options for sets Led mode: _C16X12G_LED_MODE_PWM _C16X12G_LED_MODE_ABM1 _C16X12G_LED_MODE_ABM2 _C16X12G_LED_MODE_ABM3
void c16x12g_set_pmw | ( | c16x12_t * | ctx, |
uint8_t | pwm_value ) |
Functions for sets PWM for all LEDs.
ctx | Click object. |
pwm_value | PWM value |
void c16x12g_set_stand_by | ( | c16x12_t * | ctx, |
uint8_t | state ) |
Functions for sets SDB pin state.
ctx | Click object. |
state | SDB pin state |
void c16x12g_start_abm | ( | c16x12_t * | ctx | ) |
Functions for start new ABM configuration.
ctx | Click object. |
ctx | Click object. |
void c16x12g_write_page_byte | ( | c16x12_t * | ctx, |
uint16_t | reg_addr, | ||
uint8_t | reg_value ) |
Functions for write one byte in register with select page.
ctx | Click object. |
reg_addr | Register in which the data will be written |
reg_value | Data which be written in the register |
void c16x12g_write_page_data | ( | c16x12_t * | ctx, |
uint16_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | n_data ) |
Functions for write n byte in registers with select page.
ctx | Click object. |
reg | Start register in which the data will be written |
data_buf | Data which be written in the registers |
n_data | Number of the data which be written in the registers |
void c16x12g_write_reg | ( | c16x12_t * | ctx, |
uint8_t | reg, | ||
uint8_t | c_data ) |
Functions for write one byte in register.
ctx | Click object. |
reg | Register in which the data will be written |
c_data | Data which be written in the register |