8#define DALLAS_COMMON_MANUFACTURER_NAME "Dallas"
10#define DALLAS_COMMON_CMD_READ_ROM 0x33U
11#define DALLAS_COMMON_CMD_MATCH_ROM 0x55U
12#define DALLAS_COMMON_CMD_SKIP_ROM 0xCCU
13#define DALLAS_COMMON_CMD_COND_SEARCH 0xECU
14#define DALLAS_COMMON_CMD_SEARCH_ROM 0xF0U
16#define DALLAS_COMMON_CMD_READ_SCRATCH 0xAAU
17#define DALLAS_COMMON_CMD_WRITE_SCRATCH 0x0FU
18#define DALLAS_COMMON_CMD_COPY_SCRATCH 0x55U
20#define DALLAS_COMMON_CMD_READ_MEM 0xF0U
22#define DALLAS_COMMON_CMD_OVERDRIVE_SKIP_ROM 0x3CU
23#define DALLAS_COMMON_CMD_OVERDRIVE_MATCH_ROM 0x69U
26 DallasCommonCommandStateIdle,
27 DallasCommonCommandStateRomCmd,
28 DallasCommonCommandStateMemCmd,
29} DallasCommonCommandState;
34 uint8_t serial_number[6];
54bool dallas_common_write_scratchpad(
60bool dallas_common_read_scratchpad(
66bool dallas_common_copy_scratchpad(
71bool dallas_common_read_mem(
OneWireHost* host, uint16_t address, uint8_t* data,
size_t data_size);
74bool dallas_common_write_mem(
86bool dallas_common_emulate_read_mem(
OneWireSlave* bus,
const uint8_t* data,
size_t data_size);
91bool dallas_common_load_rom_data(
93 uint32_t format_version,
101void dallas_common_render_brief_data(
104 const uint8_t* mem_data,
106 const char* mem_name);
1-Wire host (master) library
Definition one_wire_host.c:49
Definition one_wire_slave.c:31
Definition dallas_common.h:40
Definition dallas_common.h:31