flinklib
flinklib: flink C library for Linux
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
aout.c File Reference

flink userspace library, subdevice function "analog output". More...

#include "flinklib.h"
#include "types.h"
#include "error.h"
#include "log.h"
#include <stdint.h>
Include dependency graph for aout.c:

Go to the source code of this file.

Functions

int flink_analog_out_get_resolution (flink_subdev *subdev, uint32_t *resolution)
 Reads the resolution of a analog output subdevice. More...
 
int flink_analog_out_set_value (flink_subdev *subdev, uint32_t channel, uint32_t value)
 Writes an analog output channel. More...
 

Detailed Description

flink userspace library, subdevice function "analog output".

Contains the high-level functions for a flink subdevice which realizes the function "analog output".

Author
Marco Tinner

Definition in file aout.c.

Function Documentation

int flink_analog_out_get_resolution ( flink_subdev subdev,
uint32_t *  resolution 
)

Reads the resolution of a analog output subdevice.

Parameters
subdevSubdevice.
resolutionContains the resolution in number of resolvable steps.
Returns
int: 0 on success, -1 in case of failure.

Definition at line 37 of file aout.c.

int flink_analog_out_set_value ( flink_subdev subdev,
uint32_t  channel,
uint32_t  value 
)

Writes an analog output channel.

Parameters
subdevSubdevice containing the channel.
channelChannel number.
valueContains the digitized value of the channel output.
Returns
int: 0 on success, -1 in case of failure.

Definition at line 55 of file aout.c.