Unibrain API-810 User Manual Page 82

  • Download
  • Add to my manuals
  • Print
  • Page
    / 95
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 81
82
C# syntax
FireiRegister Register = Camera.ReadCommand(&H504);
WriteCommand method
Prototype
void WriteCommand(uint offset, FireiRegister register)
Comments
This is method that can be used to set any command register of the camera, given its offset as a parameter.
As “command register” is defined a register with its offset based on the command-base register offset
(normally hex F0000000).
It will write the value to the camera, given a valid FireiFeature object. If for some reason the camera
rejects the write request, an exception will be thrown (the exception information will contain the nature of
the error).
The WriteCommand method has the exact same effect as the WriteRegister method, if the command-
base offset is added to the offset parameter. Since this offset is theoretically variable (camera-specific), for
command registers it is best to use the WriteCommand method.
Visual Basic syntax
Dim Register As FireiRegister
Register = new FireiRegister(0)
Camera.WriteCommand(&H504, Register)
C# syntax
FireiRegister Register = new FireiRegister(0);
Camera.WriteCommand(&H504, Register);
ReadBlock method
Prototype
byte[] ReadBlock(uint offset, uint size)
Comments
This is a method that can be used to retrieve a block of registers (quadlets) on the camera, given its offset
and the number of bytes to read (size) as parameters. The size must be a multiple of 4.
Visual Basic syntax
Dim buffer() As Byte
buffer = Camera.ReadBlock(&HF0F00508, 12)
C# syntax
Byte[] buffer = Camera.ReadBlock(0xF0F00508, 12);
WriteBlock method
Prototype
void WriteBlock(uint offset, byte[] buffer)
Page view 81
1 2 ... 77 78 79 80 81 82 83 84 85 86 87 ... 94 95

Comments to this Manuals

No comments