Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ain.h File Reference
Go to the source code of this file.
Data Structures | |
struct | ain_init_param |
Structure holding parameters for analog input initialization. More... | |
struct | ain_desc |
Structure holding analog input descriptor. More... | |
struct | ain_platform_ops |
Structure holding analog input function pointers that point to the platform specific function. More... | |
Functions | |
int32_t | ain_get_voltage (struct ain_desc *desc, float *value) |
Read voltage from analog input pin. | |
int32_t | ain_init (struct ain_desc **desc, const struct ain_init_param *param) |
Initialize the Analog Input Pin. | |
int32_t | ain_remove (struct ain_desc *desc) |
Deallocate resources allocated by ain_init() |
Detailed Description
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 ain.h.
Function Documentation
int32_t ain_get_voltage | ( | struct ain_desc * | desc, |
float * | value | ||
) |
int32_t ain_init | ( | struct ain_desc ** | desc, |
const struct ain_init_param * | param | ||
) |
int32_t ain_remove | ( | struct ain_desc * | desc ) |
Deallocate resources allocated by ain_init()
- Parameters:
-
desc[in,out] - Analog input descriptor
- Returns:
- SUCCESS in case of success, FAILURE otherwise.
Generated on Fri Jul 15 2022 08:04:32 by
