internal

package
v2.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Big16 big16

Big16 translates big endian 16bits words but everything larger is in little endian.

It implements binary.ByteOrder.

Functions

func CRC16

func CRC16(d []byte) uint16

CRC16 calculates the reversed CCITT CRC16 checksum.

Types

type CentiK

type CentiK uint16

CentiK is temperature in 0.01°K

It is an implementation detail of the protocol.

func (CentiK) ToC

func (c CentiK) ToC() devices.Celsius

ToC converts a Kelvin measurement to Celsius.

type DurationMS

type DurationMS uint32

DurationMS is duration in millisecond.

It is an implementation detail of the protocol.

func (DurationMS) ToD

func (d DurationMS) ToD() time.Duration

ToD converts a millisecond based timing to time.Duration.

type FFCMode

type FFCMode struct {
	FFCShutterMode          uint32     // Default: FFCShutterModeExternal
	ShutterTempLockoutState uint32     // Default: ShutterTempLockoutStateInactive
	VideoFreezeDuringFFC    Flag       // Default: Enabled
	FFCDesired              Flag       // Default: Disabled
	ElapsedTimeSinceLastFFC DurationMS // Uptime in ms.
	DesiredFFCPeriod        DurationMS // Default: 300000
	ExplicitCommandToOpen   Flag       // Default: Disabled
	DesiredFFCTempDelta     uint16     // Default: 300
	ImminentDelay           uint16     // Default: 52

}

FFCMode describes the various self-calibration settings and state.

type Flag

type Flag uint32

Flag is used in FFCMode.

const (
	Disabled Flag = 0
	Enabled  Flag = 1
)

Valid values for Flag.

type Status

type Status struct {
	CameraStatus uint32
	CommandCount uint16
	Reserved     uint16
}

Status returns the camera status as returned by the camera.

type TelemetryLocation

type TelemetryLocation uint32

TelemetryLocation is used with SysTelemetryLocation.

const (
	Header TelemetryLocation = 0
	Footer TelemetryLocation = 1
)

Valid values for TelemetryLocation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL