Loading...
Searching...
No Matches
tm01x.h
1#pragma once
2
3#include <core/kernel.h>
5
6/*
7 * A TM01x blank accepts a Dallas ID, a Cyfral code and a Metakom code.
8 *
9 * A Dallas ID is written as raw ROM bytes and is never finalized: no finalize
10 * command is known for it.
11 *
12 * Cyfral and Metakom are written as a 36-bit frame with a 4-bit prefix and are
13 * finalized into the matching mode. The frame is read back and compared before
14 * the blank is finalized, so a blank that fails verification stays writable.
15 * Finalizing is one-way: a finalized blank no longer answers 0x33 and cannot be
16 * written again, not even as a Dallas key. A finalize command that was sent but
17 * not acknowledged leaves the blank in an unknown state, to be treated as spent.
18 */
19
29bool tm01x_write_dallas(OneWireHost* host, const uint8_t* data, size_t data_size);
30
41bool tm01x_write_cyfral(OneWireHost* host, uint32_t code);
42
53bool tm01x_write_metakom(OneWireHost* host, uint32_t code);
Furi Kernel primitives.
1-Wire host (master) library
Definition one_wire_host.c:63