alphanumg 2.0.0.0
|
API for configuring and manipulating AlphaNum G Click driver. More...
Topics | |
AlphaNum G MikroBUS Map | |
MikroBUS pin mapping of AlphaNum G Click driver. | |
Functions | |
void | alphanumg_cfg_setup (alphanumg_cfg_t *cfg) |
AlphaNum G configuration object setup function. | |
err_t | alphanumg_init (alphanumg_t *ctx, alphanumg_cfg_t *cfg) |
AlphaNum G initialization function. | |
void | alphanumg_set_display_interval (alphanumg_t *ctx, uint16_t delay_char_display) |
Delay character display function. | |
void | alphanumg_display_write (alphanumg_t *ctx, uint16_t left_char, uint16_t right_char) |
Display write function. | |
void | alphanumg_write_character (alphanumg_t *ctx, uint8_t left_char, uint8_t right_char) |
Character write function. | |
void | alphanumg_write_number (alphanumg_t *ctx, uint8_t left_char, uint8_t right_char) |
Number write function. | |
void | alphanumg_set_rst_high (alphanumg_t *ctx) |
Reset set high function. | |
void | alphanumg_set_rst_low (alphanumg_t *ctx) |
Reset set low function. | |
void | alphanumg_set_pwm_high (alphanumg_t *ctx) |
PWM set high function. | |
void | alphanumg_set_pwm_low (alphanumg_t *ctx) |
PWM set low function. | |
void | alphanumg_set_int_high (alphanumg_t *ctx) |
Interrupt set high function. | |
void | alphanumg_set_int_low (alphanumg_t *ctx) |
Interrupt set low function. | |
API for configuring and manipulating AlphaNum G Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
void alphanumg_cfg_setup | ( | alphanumg_cfg_t * | cfg | ) |
AlphaNum G configuration object setup function.
This function initializes click configuration structure to initial values.
[out] | cfg | : Click configuration structure. See alphanumg_cfg_t object definition for detailed explanation. |
void alphanumg_display_write | ( | alphanumg_t * | ctx, |
uint16_t | left_char, | ||
uint16_t | right_char ) |
Display write function.
This function displays symbols on the left and right LED segments.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
[in] | left_char | Left segment symbol. |
[in] | right_char | Right segment symbol. |
err_t alphanumg_init | ( | alphanumg_t * | ctx, |
alphanumg_cfg_t * | cfg ) |
AlphaNum G initialization function.
This function initializes all necessary pins and peripherals used for this click board.
[out] | ctx | : Click context object. See alphanumg_t object definition for detailed explanation. |
[in] | cfg | : Click configuration structure. See alphanumg_cfg_t object definition for detailed explanation. |
0
- Success, -1
- Error.void alphanumg_set_display_interval | ( | alphanumg_t * | ctx, |
uint16_t | delay_char_display ) |
Delay character display function.
This function sets the time interval at which the symbols are displayed.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
[in] | delay_char_display | Delay time interval in ms. |
void alphanumg_set_int_high | ( | alphanumg_t * | ctx | ) |
Interrupt set high function.
This function sets the output voltage on the interrupt pin to high.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
void alphanumg_set_int_low | ( | alphanumg_t * | ctx | ) |
Interrupt set low function.
This function sets the output voltage on the interrupt pin to high.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
void alphanumg_set_pwm_high | ( | alphanumg_t * | ctx | ) |
PWM set high function.
This function sets the output voltage on the PWM pin to high.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
void alphanumg_set_pwm_low | ( | alphanumg_t * | ctx | ) |
PWM set low function.
This function sets the output voltage on the PWM pin to highlow.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
void alphanumg_set_rst_high | ( | alphanumg_t * | ctx | ) |
Reset set high function.
This function sets the output voltage on the reset pin to high.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
void alphanumg_set_rst_low | ( | alphanumg_t * | ctx | ) |
Reset set low function.
This function sets the output voltage on the reset pin to low.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
void alphanumg_write_character | ( | alphanumg_t * | ctx, |
uint8_t | left_char, | ||
uint8_t | right_char ) |
Character write function.
This function displays characters on the left and right LED segments.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
[in] | left_char | Left segment symbol. |
[in] | right_char | Right segment symbol. |
void alphanumg_write_number | ( | alphanumg_t * | ctx, |
uint8_t | left_char, | ||
uint8_t | right_char ) |
Number write function.
This function displays numbers on the left and right LED segments.
[in] | ctx | : Click configuration structure. See alphanumg_t object definition for detailed explanation |
[in] | left_char | Left segment symbol. |
[in] | right_char | Right segment symbol. |