HinawaFwResp

HinawaFwResp — A transaction responder for a FireWire unit

Functions

Description

A HinawaFwResp responds requests from any units.

This class is an application of Linux FireWire subsystem. All of operations utilize ioctl(2) with subsystem specific request commands.

Functions

hinawa_fw_resp_register ()

void
hinawa_fw_resp_register (HinawaFwResp *self,
                         HinawaFwUnit *unit,
                         guint64 addr,
                         guint width,
                         GError **exception);

Start to listen to a range of address in host controller

Parameters

self

A HinawaFwResp

 

unit

A HinawaFwUnit

 

addr

A start address to listen to in host controller

 

width

The byte width of address to listen to host controller

 

exception

A GError

 

hinawa_fw_resp_unregister ()

void
hinawa_fw_resp_unregister (HinawaFwResp *self);

stop to listen to a range of address in host controller

Parameters

self

A HinawaFwResp

 

hinawa_fw_resp_get_req_frame ()

void
hinawa_fw_resp_get_req_frame (HinawaFwResp *self,
                              const guint8 **frame,
                              guint *length);

Parameters

self

A HinawaFwResp

 

frame

a 8bit array for response frame.

[element-type guint8][array length=length][out]

length

The length of bytes for the frame.

[out]

hinawa_fw_resp_set_resp_frame ()

void
hinawa_fw_resp_set_resp_frame (HinawaFwResp *self,
                               guint8 *frame,
                               guint length);

Parameters

self

A HinawaFwResp

 

frame

a 8bit array for response frame.

[element-type guint8][array length=length]

length

The length of bytes for the frame.

 

Types and Values