Top | ![]() |
![]() |
![]() |
![]() |
A HinawaFwReq supports some types of transactions in IEEE 1212. Mainly for read, write and lock operations.
This class is an application of Linux FireWire subsystem. All of operations utilize ioctl(2) with subsystem specific request commands.
HinawaFwReq *
hinawa_fw_req_new (void
);
Instantiate HinawaFwReq object and return the instance.
Since: 1.3.
void hinawa_fw_req_transaction (HinawaFwReq *self
,HinawaFwNode *node
,HinawaFwTcode tcode
,guint64 addr
,gsize length
,guint8 *const *frame
,gsize *frame_size
,GError **exception
);
Execute transactions to the given node according to given code.
self |
A HinawaFwReq. |
|
node |
A HinawaFwNode. |
|
tcode |
A transaction code of HinawaFwTcode. |
|
addr |
A destination address of target device |
|
length |
The range of address in byte unit. |
|
frame |
An array with elements for byte data. Callers should give it for buffer with enough space against the request since this library performs no reallocation. Due to the reason, the value of this argument should point to the pointer to the array and immutable. The content of array is mutable for read and lock transaction. |
[array length=frame_size][inout] |
frame_size |
The size of array in byte unit. The value of this argument should point to the numerical number and mutable for read and lock transaction. |
|
exception |
A GError. |
Since: 1.4.