mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-05 18:21:54 +00:00
Added ADC implementation for STM32
This commit is contained in:
@@ -11,10 +11,26 @@ namespace sta
|
||||
class STM32ADC
|
||||
{
|
||||
public:
|
||||
STM32ADC();
|
||||
/**
|
||||
* @param handle A handle to a STM32 ADC.
|
||||
*/
|
||||
STM32ADC(ADC_HandleTypeDef * handle);
|
||||
|
||||
/**
|
||||
* @brief Starts conversion of the incoming analog signal.
|
||||
*/
|
||||
void start();
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param timeout
|
||||
*/
|
||||
void poll(uint32_t timeout);
|
||||
|
||||
uint32_t getValue();
|
||||
private:
|
||||
|
||||
ADC_HandleTypeDef * handle_;
|
||||
};
|
||||
} // namespace sta
|
||||
|
||||
|
Reference in New Issue
Block a user