linx-gateway-0.1.0.2: Implementation of the Enea LINX gateway protocol.

Safe HaskellSafe-Inferred

Network.Linx.Gateway.Types

Synopsis

Documentation

data Status Source

Status indicator

Constructors

Success 
Error 

Instances

Eq Status 
Show Status 
Binary Status

Binary instance for Status.

newtype Length Source

Length descriptor.

Constructors

Length Int32 

Instances

Eq Length 
Show Length 
Generic Length 
Binary Length

Generic binary instances.

newtype Index Source

Index descriptor.

Constructors

Index Int32 

newtype SigNo Source

Signal number descriptor.

Constructors

SigNo Int32 

data Version Source

Version descriptor.

Constructors

V100 
Version !Int32 

Instances

Eq Version 
Show Version 
Binary Version

Binary instance for Version.

data Flags Source

Flags descriptor.

Instances

Eq Flags 
Show Flags 
Binary Flags

Binary instance for Flags.

newtype CString Source

Null terminated C-string.

Constructors

CString ByteString 

Instances

Eq CString 
Show CString 
Binary CString

Binary instance for CString.

data User Source

User identifier (always zero).

Constructors

AlwaysZero 

Instances

Eq User 
Show User 
Binary User

Binary instance for User.

newtype Pid Source

Process identifier for a Linx process.

Constructors

Pid Int32 

Instances

data Timeout Source

Timeout value.

Constructors

Infinity 
Timeout Int32 

Instances

Eq Timeout 
Show Timeout 
Binary Timeout

Binary instance for Timeout.

newtype Attref Source

Attach reference

Constructors

Attref Int32 

mkCString :: String -> CStringSource

Make a CString.

cstrlen :: CString -> LengthSource

Calculate the length of a CString

toLength :: Integral a => a -> LengthSource

Convert an integral value to Length.

asInt :: Num a => Length -> aSource

Convert Length to an integral value.