raw1394_iso_recv_init

Name

raw1394_iso_recv_init --  initialize isochronous reception

Synopsis

int raw1394_iso_recv_init (raw1394handle_t handle, raw1394_iso_recv_handler_t handler, unsigned int buf_packets, unsigned int max_packet_size, unsigned char channel, enum raw1394_iso_dma_recv_mode mode, int irq_interval);

Arguments

handle

libraw1394 handle

handler

handler function for receiving packets

buf_packets

number of isochronous packets to buffer

max_packet_size

largest packet you need to handle, in bytes (not including the isochronous header)

channel

isochronous channel to receive

mode

bufferfill or packet per buffer mode

irq_interval

maximum latency of wake-ups, in packets (-1 if you don't care)

Description

Allocates all user and kernel resources necessary for isochronous reception.

Returns

0 on success or -1 on failure (sets errno)