Top | ![]() |
![]() |
![]() |
![]() |
A HinawaFwReq supports three types of transactions in IEEE 1212:
read
write
lock
Any of transaction frames should be aligned to 32bit (quadlet). This class is an application of Linux FireWire subsystem. All of operations utilize ioctl(2) with subsystem specific request commands.
void hinawa_fw_req_write (HinawaFwReq *self
,HinawaFwUnit *unit
,guint64 addr
,GArray *frame
,GError **exception
);
Execute write transactions to the given unit.
self |
||
unit |
||
addr |
A destination address of target device |
|
frame |
a 32bit array. |
[element-type guint32][array][in] |
exception |
A GError |
void hinawa_fw_req_read (HinawaFwReq *self
,HinawaFwUnit *unit
,guint64 addr
,GArray *frame
,guint quads
,GError **exception
);
Execute read transaction to the given unit.
self |
||
unit |
||
addr |
A destination address of target device |
|
frame |
a 32bit array. |
[element-type guint32][array][out caller-allocates] |
quads |
the number of quadlets to read |
|
exception |
A GError |
void hinawa_fw_req_lock (HinawaFwReq *self
,HinawaFwUnit *unit
,guint64 addr
,GArray **frame
,GError **exception
);
Execute lock transaction to the given unit.
self |
||
unit |
||
addr |
A destination address of target device |
|
frame |
a 32bit array. |
[element-type guint32][array][inout] |
exception |
A GError |
“timeout”
property“timeout” guint
An elapse to expire waiting for response by ms unit.
Flags: Read / Write / Construct
Allowed values: >= 10
Default value: 10