[][src]Crate pelcodrs

Library for handling Pelco D, a protocol used for PTZ camera control.

  • Message is the type defining a control message.

  • PelcoDPort can be used for sending the messages to the device.

Structs

Command1

Bitflag for generating the "command1" word of the message.

Command2

Bitflag for generating the "command2" word of the message.

Direction

Bitflag for direction parameter.

Error

Error type for the crate.

Message

Single command message object type.

MessageBuilder

Builder of Message (standard) instances.

PelcoDPort

Interface for communicating with a device using Pelco D protocol.

Enums

AdjustmentValue

Argument type for value adjustment functions.

AutoCtrl

Argument type for Auto/On/Off

ErrorKind

Possible types of error.

FocusSpeed

Argument type for FocusSpeed

OnOff

On/Off argument type

ShutterSpeed

Argument type for shutter speed.

Speed

Speed parameter type for pan and tilt moves.

ZoomSpeed

Argument type for Zoom Speed

Functions

checksum

Checksum algorithm used by Pelco D.

Type Definitions

Result

Result type used in the crate.