binaryIoTypeA

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a client for the binaryIoTypeA function

func NewClient

func NewClient(c *client.Client) *Client

func NewClientFromService

func NewClientFromService(serviceAddr string, timeout time.Duration) (*Client, error)

NewClientFromService creates a new core function client from a socket with a address, which was acquired from the specified service. The timeout specifies the maximal time waiting for a service to show up.

func NewClientFromSocketAddress

func NewClientFromSocketAddress(address string) (*Client, error)

NewClientFromSocketAddress creates a new binaryIoTypeA function client from a socket with the specified address.

func (*Client) Describe

func (*Client) GetAll

func (c *Client) GetAll(mask uint32) (uint32, error)

func (*Client) GetConfiguration

func (c *Client) GetConfiguration() (*Configuration, error)

func (*Client) GetSingle

func (c *Client) GetSingle(channel uint) (bool, error)

func (*Client) SetAll

func (c *Client) SetAll(values uint32, mask uint32) error

func (*Client) SetAllBinaryChannels

func (c *Client) SetAllBinaryChannels(output uint32) error

SetAllBinaryChannels sets all binary channels to the given value from the bitmask LSB is channel 0. True: output is on, False, output is off For iou01 there are only four output channels. All other bits are ignored

func (*Client) SetBinaryChannel

func (c *Client) SetBinaryChannel(channel int, state bool) error

SetBinaryChannel sets the binary channel to the given value

func (*Client) SetConfiguration

func (c *Client) SetConfiguration(config Configuration) error

func (*Client) SetSingle

func (c *Client) SetSingle(channel uint, state bool) error

type ClientInterface

type ClientInterface interface {
	NewClientFromSocketAddress(address string) (*Client, error)
	NewClientFromService(serviceAddr string, timeout time.Duration) (*Client, error)
}

type Configuration

type Configuration struct {
	OutputFritting        int32
	OutputWatchdog        int32
	OutputWatchdogTimeout int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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