Projet-Voilier-3/driver/Driver_ADC.h
Sanchez Manon c930991ccb Ajout du Driver_IMU, pour la gestion de l'accéléromètre.
Les fichiers Driver_SPI sont des versions personnelles non fonctionelle de la gestion du SPI.
C'est la bibliothèque MySPI qui est utilisée dans le projet.

Ajout de commentaires dans tous les fichiers driver en format doxygen.
2023-04-05 16:39:01 +02:00

34 lines
1.3 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef DRIVER_ADC_H
#define DRIVER_ADC_H
#include "stm32f10x.h"
/**
*************************************************************************************************
* @brief Activation et configuration de l'ADC1.
* @param -> char Prio: défini la priorité de l'interruption pour le flag EOC
-> void (*IT_function)(void) : pointeur de fonction qui sera appelé dans l'interruption
* @Note -> Fonction à lancer systématiquement avant daller plus en détail
*************************************************************************************************
*/
void driver_adc_1_init (char Prio, void (*IT_function)(void));
/**
*************************************************************************************************
* @brief Fonction pour lancer la convertion
* @param -> none
* @Note ->
*************************************************************************************************
*/
void driver_adc_1_launch_read (void);
/**
*************************************************************************************************
* @brief Fonction pour lire la valeur convertie
* @param -> none
* @return -> retour de la valeur convertie
* @Note ->
*************************************************************************************************
*/
uint16_t driver_adc_1_read (void);
#endif