Skip to content
Permalink
bcafcf8fc3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (12 sloc) 395 Bytes
#ifndef MICROPY_INCLUDED_MACHINE_ADC_H
#define MICROPY_INCLUDED_MACHINE_ADC_H
#include "machine_adcblock.h"
#include "machine_pin_phy.h"
typedef struct _machine_adc_obj_t {
mp_obj_base_t base;
machine_adcblock_obj_t *block;
machine_pin_phy_obj_t *pin_phy;
uint32_t sample_ns;
cyhal_adc_channel_t adc_chan_obj;
} machine_adc_obj_t;
#endif // MICROPY_INCLUDED_MACHINE_ADC_H