This module defines the apdu_transform behaviour.
Required callback functions: formats/0, init/2, begin_transaction/1, command/2, reply/2, end_transaction/1, terminate/1.
cmd_cooked() = term()
The type of an outgoing command received by this transform module.
format() = atom()
A name for a "format": a type of data processed by an APDU transform.
mod() = module()
The name of a module which implements this behaviour.
reply_cooked() = term()
The type of an incoming command after this transform module has been applied.
| begin_transaction/1 | |
| command/2 | |
| connect/2 | |
| end_transaction/1 | |
| start_link/3 |
begin_transaction(Pid::pid()) -> ok | {error, term()}
command(Pid::pid(), Cmd0::cmd_cooked()) -> {ok, [reply_cooked()]} | {error, term()}
connect(Pid::pid(), NextPid::pid()) -> ok | {error, term()}
end_transaction(Pid::pid()) -> ok | {ok, apdu:disposition()} | {error, term()}
start_link(Mod::mod(), Proto::apdu:protocol(), Args::[term()]) -> {ok, pid()} | {error, term()}
Generated by EDoc