HinawaFwFcp

HinawaFwFcp — A FCP transaction executor to a FireWire unit

Functions

Properties

guint timeout Read / Write / Construct

Object Hierarchy

    GObject
    ╰── HinawaFwResp
        ╰── HinawaFwFcp

Description

A HinawaFwFcp supports Function Control Protocol (FCP) in IEC 61883-1. Some types of transaction in 'AV/C Digital Interface Command Set General Specification Version 4.2' (Sep 1 2004, 1394TA) requires low layer support, thus this class has a code for them.

Any of transaction frames should be aligned to 8bit (byte). This class is an application of HinawaFwReq / HinawaFwResp.

Functions

hinawa_fw_fcp_new ()

HinawaFwFcp *
hinawa_fw_fcp_new (void);

Instantiate HinawaFwFcp object and return the instance.

Returns

an instance of HinawaFwFcp.

Since: 1.3.


hinawa_fw_fcp_listen ()

void
hinawa_fw_fcp_listen (HinawaFwFcp *self,
                      HinawaFwUnit *unit,
                      GError **exception);

Start to listen to FCP responses.

Parameters

self

A HinawaFwFcp

 

unit

A HinawaFwUnit

 

exception

A GError

 

hinawa_fw_fcp_transact ()

void
hinawa_fw_fcp_transact (HinawaFwFcp *self,
                        GByteArray *req_frame,
                        GByteArray *resp_frame,
                        GError **exception);

Execute fCP transaction.

Parameters

self

A HinawaFwFcp

 

req_frame

a byte frame for request.

[element-type guint8][array][in]

resp_frame

a byte frame for response.

[element-type guint8][array][out caller-allocates]

exception

A GError

 

hinawa_fw_fcp_unlisten ()

void
hinawa_fw_fcp_unlisten (HinawaFwFcp *self);

Stop to listen to FCP responses.

Parameters

self

A HinawaFwFcp

 

Types and Values

Property Details

The “timeout” property

  “timeout”                  guint

An elapse to expire waiting for response by msec unit.

Flags: Read / Write / Construct

Allowed values: >= 10

Default value: 200