AVC Class Reference

#include <ieee1394io.h>

List of all members.

Public Member Functions

 AVC (int crd=0)
 Initializes the AVC object.
 ~AVC ()
 Destroys the AVC object.
int isPhyIDValid (int id)
 See if a node_id is still valid and pointing to an AV/C Recorder.
void Noop (void)
 Do not do anything but let raw1394 make necessary callbacks (bus reset).
int Play (int id)
int Pause (int id)
int Stop (int id)
int FastForward (int id)
int Rewind (int id)
int Forward (int id)
int Back (int id)
int NextScene (int id)
int PreviousScene (int id)
int Record (int id)
int Shuttle (int id, int speed)
unsigned int TransportStatus (int id)
bool Timecode (int id, char *timecode)
int getNodeId (const char *guid)

Static Private Member Functions

static int ResetHandler (raw1394handle_t handle, unsigned int generation)

Private Attributes

int port
 the interface card to use (typically == 0)
pthread_mutex_t avc_mutex
 this mutex protects avc related variables that could possibly accessed from two threads at the same time
raw1394handle_t avc_handle
 the handle to the ieee1394 subsystem


Constructor & Destructor Documentation

AVC::AVC ( int  p = 0  ) 

Initializes the AVC object.

Parameters:
p the number of the interface card to use (port)

AVC::~AVC (  ) 

Destroys the AVC object.


Member Function Documentation

int AVC::Back ( int  id  ) 

int AVC::FastForward ( int  id  ) 

int AVC::Forward ( int  id  ) 

int AVC::getNodeId ( const char *  guid  ) 

int AVC::isPhyIDValid ( int  phyID  ) 

See if a node_id is still valid and pointing to an AV/C Recorder.

If the node_id is not valid, then look for the first AV/C device on the bus;

Parameters:
phyID The node_id to check.
Returns:
The same node_id if valid, a new node_id if not valid and a another AV/C recorder exists, or -1 if not valid and no AV/C recorders exist.

int AVC::NextScene ( int  id  ) 

void AVC::Noop ( void   ) 

Do not do anything but let raw1394 make necessary callbacks (bus reset).

int AVC::Pause ( int  id  ) 

int AVC::Play ( int  id  ) 

int AVC::PreviousScene ( int  id  ) 

int AVC::Record ( int  id  ) 

int AVC::ResetHandler ( raw1394handle_t  handle,
unsigned int  generation 
) [static, private]

int AVC::Rewind ( int  id  ) 

int AVC::Shuttle ( int  id,
int  speed 
)

int AVC::Stop ( int  id  ) 

bool AVC::Timecode ( int  id,
char *  timecode 
)

unsigned int AVC::TransportStatus ( int  id  ) 


Member Data Documentation

raw1394handle_t AVC::avc_handle [private]

the handle to the ieee1394 subsystem

pthread_mutex_t AVC::avc_mutex [private]

this mutex protects avc related variables that could possibly accessed from two threads at the same time

int AVC::port [private]

the interface card to use (typically == 0)


The documentation for this class was generated from the following files:
Generated on Tue Jan 22 17:07:31 2008 for MUAN by  doxygen 1.4.7