Documentation
¶
Index ¶
- type Client
- func (c *Client) Describe() (*binio.ConfigurationControlDescribeResponse, error)
- func (c *Client) GetAll(mask uint32) (uint32, error)
- func (c *Client) GetConfiguration() (*Configuration, error)
- func (c *Client) GetSingle(channel uint) (bool, error)
- func (c *Client) SetAll(values uint32, mask uint32) error
- func (c *Client) SetAllBinaryChannels(output uint32) error
- func (c *Client) SetBinaryChannel(channel int, state bool) error
- func (c *Client) SetConfiguration(config Configuration) error
- func (c *Client) SetSingle(channel uint, state bool) error
- type ClientInterface
- type Configuration
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 NewClientFromService ¶
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 ¶
NewClientFromSocketAddress creates a new binaryIoTypeA function client from a socket with the specified address.
func (*Client) Describe ¶
func (c *Client) Describe() (*binio.ConfigurationControlDescribeResponse, error)
func (*Client) GetConfiguration ¶
func (c *Client) GetConfiguration() (*Configuration, error)
func (*Client) SetAllBinaryChannels ¶
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 ¶
SetBinaryChannel sets the binary channel to the given value
func (*Client) SetConfiguration ¶
func (c *Client) SetConfiguration(config Configuration) error