39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
51#include "drv_spi_master.h"
73#define ALPHANUMG_MAP_MIKROBUS( cfg, mikrobus ) \
74 cfg.miso = MIKROBUS( mikrobus, MIKROBUS_MISO ); \
75 cfg.mosi = MIKROBUS( mikrobus, MIKROBUS_MOSI ); \
76 cfg.sck = MIKROBUS( mikrobus, MIKROBUS_SCK ); \
77 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS ); \
78 cfg.le2 = MIKROBUS( mikrobus, MIKROBUS_RST ); \
79 cfg.ns1 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
80 cfg.ns = MIKROBUS( mikrobus, MIKROBUS_INT )
alphanumg_return_value_t
AlphaNum G Click return value data.
Definition alphanumg.h:133
@ ALPHANUMG_ERROR
Definition alphanumg.h:135
@ ALPHANUMG_OK
Definition alphanumg.h:134
void alphanumg_cfg_setup(alphanumg_cfg_t *cfg)
AlphaNum G configuration object setup function.
void alphanumg_set_rst_low(alphanumg_t *ctx)
Reset set low function.
void alphanumg_set_int_high(alphanumg_t *ctx)
Interrupt set high function.
void alphanumg_set_display_interval(alphanumg_t *ctx, uint16_t delay_char_display)
Delay character display function.
void alphanumg_set_rst_high(alphanumg_t *ctx)
Reset set high function.
void alphanumg_set_pwm_low(alphanumg_t *ctx)
PWM set low function.
void alphanumg_set_int_low(alphanumg_t *ctx)
Interrupt set low function.
err_t alphanumg_init(alphanumg_t *ctx, alphanumg_cfg_t *cfg)
AlphaNum G initialization function.
void alphanumg_set_pwm_high(alphanumg_t *ctx)
PWM set high function.
void alphanumg_write_number(alphanumg_t *ctx, uint8_t left_char, uint8_t right_char)
Number write 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.
AlphaNum G Click configuration object.
Definition alphanumg.h:109
spi_master_chip_select_polarity_t cs_polarity
Definition alphanumg.h:124
pin_name_t sck
Definition alphanumg.h:113
spi_master_mode_t spi_mode
Definition alphanumg.h:123
pin_name_t ns
Definition alphanumg.h:119
pin_name_t mosi
Definition alphanumg.h:112
uint32_t spi_speed
Definition alphanumg.h:122
pin_name_t ns1
Definition alphanumg.h:118
pin_name_t miso
Definition alphanumg.h:111
pin_name_t le2
Definition alphanumg.h:117
pin_name_t cs
Definition alphanumg.h:114
AlphaNum G Click context object.
Definition alphanumg.h:90
spi_master_t spi
Definition alphanumg.h:97
digital_out_t ns
Definition alphanumg.h:94
uint16_t display_speed
Definition alphanumg.h:101
digital_out_t ns1
Definition alphanumg.h:93
pin_name_t chip_select
Definition alphanumg.h:99
digital_out_t le2
Definition alphanumg.h:92