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_one_wire.h"
73#define UNIQUEID_FAMILY_CODE 0x01
86#define UNIQUEID_MAP_MIKROBUS( cfg, mikrobus ) \
87 cfg.gp0 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
88 cfg.gp1 = MIKROBUS( mikrobus, MIKROBUS_AN );
uniqueid_gpio_sel_t
UNIQUE ID click GPIO selector.
Definition uniqueid.h:97
uniqueid_return_value_t
UNIQUE ID click return value data.
Definition uniqueid.h:136
void uniqueid_gpio_selection(uniqueid_cfg_t *cfg, uniqueid_gpio_sel_t gpio_sel)
UNIQUE ID driver interface setup function.
err_t uniqueid_init(uniqueid_t *ctx, uniqueid_cfg_t *cfg)
UNIQUE ID initialization function.
err_t uniqueid_read_id(uniqueid_t *ctx, uint8_t *family, uint8_t *serial_num)
UNIQUE ID read Family Code and Serial Number function.
void uniqueid_cfg_setup(uniqueid_cfg_t *cfg)
UNIQUE ID configuration object setup function.
@ UNIQUEID_GPIO_1
Definition uniqueid.h:99
@ UNIQUEID_GPIO_0
Definition uniqueid.h:98
@ UNIQUEID_OK
Definition uniqueid.h:137
@ UNIQUEID_ERROR
Definition uniqueid.h:138
UNIQUE ID click configuration object.
Definition uniqueid.h:122
pin_name_t gp0
Definition uniqueid.h:124
uniqueid_gpio_sel_t gpio_sel
Definition uniqueid.h:127
pin_name_t gp1
Definition uniqueid.h:125
UNIQUE ID click context object.
Definition uniqueid.h:108
one_wire_rom_address_t rom_addr
Definition uniqueid.h:112
uint8_t address
Definition uniqueid.h:113
one_wire_t ow
Definition uniqueid.h:110