Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
adc_drv.h File Reference

Platform abstraction for Z-Wave Applications. More...

#include <stdint.h>
+ Include dependency graph for adc_drv.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)
 

Detailed Description

Platform abstraction for Z-Wave Applications.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2024 Trident IoT, LLC https://www.tridentiot.com


Function Documentation

◆ adc_enable()

void adc_enable ( uint8_t state)

Enable/Disable the ADC

Parameters
[in]stateEnables the ADC if set to true and disables the ADC if set to false.

◆ adc_get_temp()

void adc_get_temp ( int32_t * pTemp)

Read the temprature from the built-in sesnor

Parameters
[out]pTempAddress of variable where the read temperature will be written.

◆ adc_get_voltage()

void adc_get_voltage ( uint32_t * pVoltage)

Read the voltage from the battry monitor

Parameters
[out]pVoltageAddress of variable where the read voltage will be written.

◆ adc_init()

void adc_init ( void )

Initialize ADC HW