Main Page   Class Hierarchy   Compound List   Compound Members  

ArSonyPacket Class Reference

A class for for making commands to send to the sony. More...

#include <ArSonyPTZ.h>

Inheritance diagram for ArSonyPacket::

ArBasePacket List of all members.

Public Methods

 ArSonyPacket (ArTypes::UByte2 bufferSize=15)
 Constructor.

virtual void uByteToBuf (ArTypes::UByte val)
 Puts ArTypes::UByte into packets buffer.

virtual void byte2ToBuf (ArTypes::Byte2 val)
 Puts ArTypes::Byte2 into packets buffer.

void byte2ToBufAtPos (ArTypes::Byte2 val, ArTypes::UByte2 pose)
 This is a new function, read the details before you try to use it. More...


Detailed Description

A class for for making commands to send to the sony.

There are only two functioning ways to put things into this packet, you MUST use thse, if you use anything else your commands won't work. You must use uByteToBuf and byte2ToBuf.


Member Function Documentation

void ArSonyPacket::byte2ToBufAtPos ArTypes::Byte2    val,
ArTypes::UByte2    pose
 

This is a new function, read the details before you try to use it.

This function is my concession to not rebuilding a packet from scratch for every command, basicaly this is to not lose all speed over just using a character array. This is used by the default sony commands, unless you have a deep understanding of how the packets are working and what the packet structure looks like you should not play with this function, it also isn't worth it unless you'll be sending commands frequently.

Parameters:
val  the Byte2 to put into the packet
pose  the position in the packets array to put the value


The documentation for this class was generated from the following files:
Generated on Tue Nov 12 17:44:06 2002 for Aria by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001