analogInTypeA

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalogInTypeA

type AnalogInTypeA struct {
}

func NewAnalogInTypeAClient

func NewAnalogInTypeAClient() *AnalogInTypeA

func (*AnalogInTypeA) GetChannel

func (c *AnalogInTypeA) GetChannel(channel int) (*anaIn.Sample, error)

GetChannel gets the current value of a given analog channel

type Client

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

Client represents a client for the analogInTypeA 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 analogInTypeA function client from a socket with the specified address.

func (*Client) SetConfiguration

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

type Configuration

type Configuration struct {
	SampleRate map[int]uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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