HinawaFwReq

HinawaFwReq — A transaction executor to a FireWire unit.

Functions

Properties

guint timeout Read / Write / Construct

Object Hierarchy

    GObject
    ╰── HinawaFwReq

Description

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.

Functions

hinawa_fw_req_new ()

HinawaFwReq *
hinawa_fw_req_new (void);

Instantiate HinawaFwReq object and return the instance.

Returns

an instance of HinawaFwReq.

Since: 1.3.


hinawa_fw_req_transaction ()

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.

Parameters

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.

Property Details

The “timeout” property

  “timeout”                  guint

An elapse to expire waiting for response by ms unit.

Owner: HinawaFwReq

Flags: Read / Write / Construct

Allowed values: >= 10

Default value: 200