You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
568 B

// SPDX-FileCopyrightText: 2020 Foundation Devices, Inc. <hello@foundationdevices.com>
// SPDX-License-Identifier: GPL-3.0-or-later
//
// Copyright 2020 - Foundation Devices Inc.
//
#ifndef _ADC_H_
#define _ADC_H_
extern int adc_init(void);
extern int adc_read_als(uint16_t *als);
extern int adc_read_boardrev(uint16_t *board_rev);
extern int adc_read_powermon(uint16_t *current, uint16_t *voltage);
extern void adc_enable_noise(void);
extern void adc_disable_noise(void);
extern int adc_read_noise_inputs(uint32_t *noise1, uint32_t *noise2);
#endif //_ADC_H_