Permalink
Cannot retrieve contributors at this time
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?
micropython/ports/psoc6/machine_adc.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (12 sloc)
395 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |