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 EEPROM6_CMD_WRITE_SCRATCHPAD 0x0F
74#define EEPROM6_CMD_READ_SCRATCHPAD 0xAA
75#define EEPROM6_CMD_COPY_SCRATCHPAD 0x55
76#define EEPROM6_CMD_READ_MEMORY 0xF0
77#define EEPROM6_CMD_EXTENDED_READ_MEMORY 0xA5
95#define EEPROM6_FAMILY_CODE 0x43
101#define EEPROM6_ADDRESS_0 0x00
102#define EEPROM6_ADDRESS_1 0x01
103#define EEPROM6_ADDRESS_ALL 0xFF
121#define EEPROM6_MAP_MIKROBUS( cfg, mikrobus ) \
122 cfg.gp0 = MIKROBUS( mikrobus, MIKROBUS_PWM ); \
123 cfg.gp1 = MIKROBUS( mikrobus, MIKROBUS_AN );
eeprom6_gpio_sel_t
EEPROM 6 Click gpio selector.
Definition eeprom6.h:133
@ EEPROM6_GPIO_1
Definition eeprom6.h:135
@ EEPROM6_GPIO_0
Definition eeprom6.h:134
eeprom6_return_value_t
EEPROM 6 Click return value data.
Definition eeprom6.h:172
@ EEPROM6_ERROR
Definition eeprom6.h:174
@ EEPROM6_OK
Definition eeprom6.h:173
void eeprom6_cfg_setup(eeprom6_cfg_t *cfg)
EEPROM 6 configuration object setup function.
err_t eeprom6_write_scratchpad(eeprom6_t *ctx, uint8_t *scratchpad, uint8_t scratchpad_len)
EEPROM 6 write scratchpad function.
err_t eeprom6_write_mem(eeprom6_t *ctx, uint16_t reg_adr, uint8_t *data_in, uint16_t n_len)
EEPROM 6 write memory function.
void eeprom6_gpio_selection(eeprom6_cfg_t *cfg, eeprom6_gpio_sel_t gpio_sel)
EEPROM 6 driver interface setup function.
err_t eeprom6_select_device(eeprom6_t *ctx)
EEPROM 6 select device function.
err_t eeprom6_check_communication(eeprom6_t *ctx)
EEPROM 6 check communication function.
err_t eeprom6_init(eeprom6_t *ctx, eeprom6_cfg_t *cfg)
EEPROM 6 initialization function.
err_t eeprom6_default_cfg(eeprom6_t *ctx)
EEPROM 6 default configuration function.
err_t eeprom6_read_scratchpad(eeprom6_t *ctx, uint8_t *scratchpad, uint8_t scratchpad_len)
EEPROM 6 read scratchpad function.
err_t eeprom6_read_mem(eeprom6_t *ctx, uint16_t reg_adr, uint8_t *data_in, uint16_t n_len)
EEPROM 6 read memory function.
EEPROM 6 Click configuration object.
Definition eeprom6.h:158
pin_name_t gp0
Definition eeprom6.h:160
eeprom6_gpio_sel_t gpio_sel
Definition eeprom6.h:163
pin_name_t gp1
Definition eeprom6.h:161
EEPROM 6 Click context object.
Definition eeprom6.h:144
one_wire_rom_address_t rom_addr
Definition eeprom6.h:148
uint8_t address
Definition eeprom6.h:149
one_wire_t ow
Definition eeprom6.h:146