internal

package
v3.6.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package internal contains code shared between cci and lepton.

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.01K

It is an implementation detail of the protocol.

func (CentiK) Temperature

func (c CentiK) Temperature() physic.Temperature

Temperature converts a Kelvin measurement to Temperature.

type DurationMS

type DurationMS uint32

DurationMS is duration in millisecond.

It is an implementation detail of the protocol.

func (DurationMS) Duration

func (d DurationMS) Duration() time.Duration

Duration 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     CentiK     // 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