Platform drivers for Mbed.

Dependents:   EVAL-CN0535-FMCZ EVAL-CN0535-FMCZ EVAL-AD568x-AD569x EVAL-AD7606 ... more

Embed: (wiki syntax)

« Back to documentation index

aout.cpp File Reference

aout.cpp File Reference

Implementation of mbed specific analog output functionality. More...

Go to the source code of this file.

Functions

int32_t aout_set_voltage (struct aout_desc *desc, float value)
 Write voltage to analog output pin.
int32_t aout_init (struct aout_desc **desc, const struct aout_init_param *param)
 Initialize the analog output pin.
int32_t aout_remove (struct aout_desc *desc)
 Deallocate resources allocated by aout_init()

Variables

struct aout_platform_ops mbed_aout_ops
 Mbed specific analog output platform ops structure.

Detailed Description

Implementation of mbed specific analog output functionality.

Copyright (c) 2021 Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Definition in file aout.cpp.


Function Documentation

int32_t aout_init ( struct aout_desc **  desc,
const struct aout_init_param param 
)

Initialize the analog output pin.

Parameters:
desc[in,out]- Analog output descriptor structure
param[in]- Structure that contains analog output initialization parameters
Returns:
SUCCESS in case of success, FAILURE otherwise

Definition at line 78 of file aout.cpp.

int32_t aout_remove ( struct aout_desc desc )

Deallocate resources allocated by aout_init()

Parameters:
desc[in,out]- Analog output descriptor
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 137 of file aout.cpp.

int32_t aout_set_voltage ( struct aout_desc desc,
float  value 
)

Write voltage to analog output pin.

Parameters:
desc[in]- Analog output descriptor
value[in]- Analog output value in volts
Returns:
SUCCESS in case of success, FAILURE otherwise.

Definition at line 44 of file aout.cpp.


Variable Documentation

Initial value:
 {
    .init = &aout_init,
    .write = &aout_set_voltage,
    .remove = &aout_remove
}

Mbed specific analog output platform ops structure.

Definition at line 170 of file aout.cpp.