iButton worker
More...
Go to the source code of this file.
|
|
typedef void(* | iButtonWorkerReadCallback) (void *context) |
| |
|
typedef void(* | iButtonWorkerWriteCallback) (void *context, iButtonWorkerWriteResult result) |
| |
|
typedef void(* | iButtonWorkerEmulateCallback) (void *context, bool emulated) |
| |
|
typedef struct iButtonWorker | iButtonWorker |
| |
|
| enum | iButtonWorkerWriteResult { iButtonWorkerWriteOK
, iButtonWorkerWriteSameKey
, iButtonWorkerWriteNoDetect
, iButtonWorkerWriteCannotWrite
} |
| |
|
| iButtonWorker * | ibutton_worker_alloc (iButtonProtocols *protocols) |
| | Allocate ibutton worker.
|
| |
| void | ibutton_worker_free (iButtonWorker *worker) |
| | Free ibutton worker.
|
| |
| void | ibutton_worker_start_thread (iButtonWorker *worker) |
| | Start ibutton worker thread.
|
| |
| void | ibutton_worker_stop_thread (iButtonWorker *worker) |
| | Stop ibutton worker thread.
|
| |
| void | ibutton_worker_read_set_callback (iButtonWorker *worker, iButtonWorkerReadCallback callback, void *context) |
| | Set "read success" callback.
|
| |
| void | ibutton_worker_read_start (iButtonWorker *worker, iButtonKey *key) |
| | Start read mode.
|
| |
| void | ibutton_worker_write_set_callback (iButtonWorker *worker, iButtonWorkerWriteCallback callback, void *context) |
| | Set "write event" callback.
|
| |
| void | ibutton_worker_write_id_start (iButtonWorker *worker, iButtonKey *key) |
| | Start write blank mode.
|
| |
| void | ibutton_worker_write_copy_start (iButtonWorker *worker, iButtonKey *key) |
| | Start write copy mode.
|
| |
| void | ibutton_worker_emulate_set_callback (iButtonWorker *worker, iButtonWorkerEmulateCallback callback, void *context) |
| | Set "emulate success" callback.
|
| |
| void | ibutton_worker_emulate_start (iButtonWorker *worker, iButtonKey *key) |
| | Start emulate mode.
|
| |
| void | ibutton_worker_stop (iButtonWorker *worker) |
| | Stop all modes.
|
| |
◆ ibutton_worker_alloc()
Allocate ibutton worker.
- Returns
- iButtonWorker*
◆ ibutton_worker_emulate_set_callback()
| void ibutton_worker_emulate_set_callback |
( |
iButtonWorker * | worker, |
|
|
iButtonWorkerEmulateCallback | callback, |
|
|
void * | context ) |
Set "emulate success" callback.
- Parameters
-
◆ ibutton_worker_emulate_start()
Start emulate mode.
- Parameters
-
◆ ibutton_worker_free()
Free ibutton worker.
- Parameters
-
◆ ibutton_worker_read_set_callback()
| void ibutton_worker_read_set_callback |
( |
iButtonWorker * | worker, |
|
|
iButtonWorkerReadCallback | callback, |
|
|
void * | context ) |
Set "read success" callback.
- Parameters
-
◆ ibutton_worker_read_start()
Start read mode.
- Parameters
-
◆ ibutton_worker_start_thread()
Start ibutton worker thread.
- Parameters
-
◆ ibutton_worker_stop()
Stop all modes.
- Parameters
-
◆ ibutton_worker_stop_thread()
Stop ibutton worker thread.
- Parameters
-
◆ ibutton_worker_write_copy_start()
Start write copy mode.
- Parameters
-
◆ ibutton_worker_write_id_start()
Start write blank mode.
- Parameters
-
◆ ibutton_worker_write_set_callback()
| void ibutton_worker_write_set_callback |
( |
iButtonWorker * | worker, |
|
|
iButtonWorkerWriteCallback | callback, |
|
|
void * | context ) |
Set "write event" callback.
- Parameters
-