alphanumg 2.0.0.0
AlphaNum G Click Driver

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.
 

Detailed Description

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.

Function Documentation

◆ alphanumg_cfg_setup()

void alphanumg_cfg_setup ( alphanumg_cfg_t * cfg)

AlphaNum G configuration object setup function.

This function initializes click configuration structure to initial values.

Parameters
[out]cfg: Click configuration structure. See alphanumg_cfg_t object definition for detailed explanation.
Returns
Nothing.
Note
The all used pins will be set to unconnected state.

◆ alphanumg_display_write()

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.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
[in]left_charLeft segment symbol.
[in]right_charRight segment symbol.
Returns
Nothing.

◆ alphanumg_init()

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.

Parameters
[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.
Returns
  • 0 - Success,
  • -1 - Error.
See #err_t definition for detailed explanation.
Note
None.

◆ alphanumg_set_display_interval()

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.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
[in]delay_char_displayDelay time interval in ms.
Returns
Nothing.

◆ alphanumg_set_int_high()

void alphanumg_set_int_high ( alphanumg_t * ctx)

Interrupt set high function.

This function sets the output voltage on the interrupt pin to high.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
Returns
Nothing.

◆ alphanumg_set_int_low()

void alphanumg_set_int_low ( alphanumg_t * ctx)

Interrupt set low function.

This function sets the output voltage on the interrupt pin to high.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
Returns
Nothing.

◆ alphanumg_set_pwm_high()

void alphanumg_set_pwm_high ( alphanumg_t * ctx)

PWM set high function.

This function sets the output voltage on the PWM pin to high.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
Returns
Nothing.

◆ alphanumg_set_pwm_low()

void alphanumg_set_pwm_low ( alphanumg_t * ctx)

PWM set low function.

This function sets the output voltage on the PWM pin to highlow.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
Returns
Nothing.

◆ alphanumg_set_rst_high()

void alphanumg_set_rst_high ( alphanumg_t * ctx)

Reset set high function.

This function sets the output voltage on the reset pin to high.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
Returns
Nothing.

◆ alphanumg_set_rst_low()

void alphanumg_set_rst_low ( alphanumg_t * ctx)

Reset set low function.

This function sets the output voltage on the reset pin to low.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
Returns
Nothing.

◆ alphanumg_write_character()

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.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
[in]left_charLeft segment symbol.
[in]right_charRight segment symbol.
Returns
Nothing.

◆ alphanumg_write_number()

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.

Parameters
[in]ctx: Click configuration structure. See alphanumg_t object definition for detailed explanation
[in]left_charLeft segment symbol.
[in]right_charRight segment symbol.
Returns
Nothing.