Platform abstraction for Z-Wave Applications. More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | adc_init (void) |
void | adc_enable (uint8_t state) |
void | adc_get_voltage (uint32_t *pVoltage) |
void | adc_get_temp (int32_t *pTemp) |
Platform abstraction for Z-Wave Applications.
SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2024 Trident IoT, LLC https://www.tridentiot.com
void adc_enable | ( | uint8_t | state | ) |
Enable/Disable the ADC
[in] | state | Enables the ADC if set to true and disables the ADC if set to false. |
void adc_get_temp | ( | int32_t * | pTemp | ) |
Read the temprature from the built-in sesnor
[out] | pTemp | Address of variable where the read temperature will be written. |
void adc_get_voltage | ( | uint32_t * | pVoltage | ) |
Read the voltage from the battry monitor
[out] | pVoltage | Address of variable where the read voltage will be written. |
void adc_init | ( | void | ) |
Initialize ADC HW