STM32F37 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F37 Standard Peripheral Library
|
This file contains all the functions prototypes for the SDADC firmware library. More...
#include "stm32f37x.h"
Go to the source code of this file.
Data Structures | |
struct | SDADC_InitTypeDef |
SDADC Init structure definition. More... | |
struct | SDADC_AINStructTypeDef |
SDADC Analog Inputs Configuration structure definition. More... | |
Macros | |
#define | IS_SDADC_ALL_PERIPH(PERIPH) |
#define | IS_SDADC_SLAVE_PERIPH(PERIPH) |
#define | SDADC_Channel_0 ((uint32_t)0x00000001) |
#define | SDADC_Channel_1 ((uint32_t)0x00010002) |
#define | SDADC_Channel_2 ((uint32_t)0x00020004) |
#define | SDADC_Channel_3 ((uint32_t)0x00030008) |
#define | SDADC_Channel_4 ((uint32_t)0x00040010) |
#define | SDADC_Channel_5 ((uint32_t)0x00050020) |
#define | SDADC_Channel_6 ((uint32_t)0x00060040) |
#define | SDADC_Channel_7 ((uint32_t)0x00070080) |
#define | SDADC_Channel_8 ((uint32_t)0x00080100) |
#define | IS_SDADC_REGULAR_CHANNEL(CHANNEL) |
#define | IS_SDADC_INJECTED_CHANNEL(CHANNEL) (((CHANNEL) != 0) && ((CHANNEL) <= 0x000F01FF)) |
#define | SDADC_Conf_0 ((uint32_t)0x00000000) |
#define | SDADC_Conf_1 ((uint32_t)0x00000001) |
#define | SDADC_Conf_2 ((uint32_t)0x00000002) |
#define | IS_SDADC_CONF(CONF) |
#define | SDADC_InputMode_Diff ((uint32_t)0x00000000) |
#define | SDADC_InputMode_SEOffset SDADC_CONF0R_SE0_0 |
#define | SDADC_InputMode_SEZeroReference SDADC_CONF0R_SE0 |
#define | IS_SDADC_INPUT_MODE(MODE) |
#define | SDADC_Gain_1 ((uint32_t)0x00000000) |
#define | SDADC_Gain_2 SDADC_CONF0R_GAIN0_0 |
#define | SDADC_Gain_4 SDADC_CONF0R_GAIN0_1 |
#define | SDADC_Gain_8 ((uint32_t)0x00300000) |
#define | SDADC_Gain_16 SDADC_CONF0R_GAIN0_2 |
#define | SDADC_Gain_32 ((uint32_t)0x00500000) |
#define | SDADC_Gain_1_2 SDADC_CONF0R_GAIN0 |
#define | IS_SDADC_GAIN(GAIN) |
#define | SDADC_CommonMode_VSSA ((uint32_t)0x00000000) |
#define | SDADC_CommonMode_VDDA_2 SDADC_CONF0R_COMMON0_0 |
#define | SDADC_CommonMode_VDDA SDADC_CONF0R_COMMON0_1 |
#define | IS_SDADC_COMMON_MODE(MODE) |
#define | IS_SDADC_OFFSET_VALUE(VALUE) ((VALUE) <= 0x00000FFF) |
#define | SDADC_ExternalTrigInjecConv_T13_CC1 ((uint32_t)0x00000000) |
#define | SDADC_ExternalTrigInjecConv_T14_CC1 ((uint32_t)0x00000100) |
#define | SDADC_ExternalTrigInjecConv_T16_CC1 ((uint32_t)0x00000000) |
#define | SDADC_ExternalTrigInjecConv_T17_CC1 ((uint32_t)0x00000000) |
#define | SDADC_ExternalTrigInjecConv_T12_CC1 ((uint32_t)0x00000100) |
#define | SDADC_ExternalTrigInjecConv_T12_CC2 ((uint32_t)0x00000100) |
#define | SDADC_ExternalTrigInjecConv_T15_CC2 ((uint32_t)0x00000200) |
#define | SDADC_ExternalTrigInjecConv_T2_CC3 ((uint32_t)0x00000200) |
#define | SDADC_ExternalTrigInjecConv_T2_CC4 ((uint32_t)0x00000200) |
#define | SDADC_ExternalTrigInjecConv_T3_CC1 ((uint32_t)0x00000300) |
#define | SDADC_ExternalTrigInjecConv_T3_CC2 ((uint32_t)0x00000300) |
#define | SDADC_ExternalTrigInjecConv_T3_CC3 ((uint32_t)0x00000300) |
#define | SDADC_ExternalTrigInjecConv_T4_CC1 ((uint32_t)0x00000400) |
#define | SDADC_ExternalTrigInjecConv_T4_CC2 ((uint32_t)0x00000400) |
#define | SDADC_ExternalTrigInjecConv_T4_CC3 ((uint32_t)0x00000400) |
#define | SDADC_ExternalTrigInjecConv_T19_CC2 ((uint32_t)0x00000500) |
#define | SDADC_ExternalTrigInjecConv_T19_CC3 ((uint32_t)0x00000500) |
#define | SDADC_ExternalTrigInjecConv_T19_CC4 ((uint32_t)0x00000500) |
#define | SDADC_ExternalTrigInjecConv_Ext_IT11 ((uint32_t)0x00000700) |
#define | SDADC_ExternalTrigInjecConv_Ext_IT15 ((uint32_t)0x00000600) |
#define | IS_SDADC_EXT_INJEC_TRIG(INJTRIG) |
#define | SDADC_ExternalTrigInjecConvEdge_None ((uint32_t) 0x00000000) |
#define | SDADC_ExternalTrigInjecConvEdge_Rising SDADC_CR2_JEXTEN_0 |
#define | SDADC_ExternalTrigInjecConvEdge_Falling SDADC_CR2_JEXTEN_1 |
#define | SDADC_ExternalTrigInjecConvEdge_RisingFalling SDADC_CR2_JEXTEN |
#define | IS_SDADC_EXT_INJEC_TRIG_EDGE(EDGE) |
#define | SDADC_DMATransfer_Regular SDADC_CR1_RDMAEN |
#define | SDADC_DMATransfer_Injected SDADC_CR1_JDMAEN |
#define | IS_SDADC_DMA_TRANSFER(TRANSFER) |
#define | SDADC_CalibrationSequence_1 ((uint32_t)0x00000000) |
#define | SDADC_CalibrationSequence_2 SDADC_CR2_CALIBCNT_0 |
#define | SDADC_CalibrationSequence_3 SDADC_CR2_CALIBCNT_1 |
#define | IS_SDADC_CALIB_SEQUENCE(SEQUENCE) |
#define | SDADC_VREF_Ext ((uint32_t)0x00000000) |
#define | SDADC_VREF_VREFINT1 SDADC_CR1_REFV_0 |
#define | SDADC_VREF_VREFINT2 SDADC_CR1_REFV_1 |
#define | SDADC_VREF_VDDA SDADC_CR1_REFV |
#define | IS_SDADC_VREF(VREF) |
#define | SDADC_IT_EOCAL ((uint32_t)0x00000001) |
#define | SDADC_IT_JEOC ((uint32_t)0x00000002) |
#define | SDADC_IT_JOVR ((uint32_t)0x00000004) |
#define | SDADC_IT_REOC ((uint32_t)0x00000008) |
#define | SDADC_IT_ROVR ((uint32_t)0x00000010) |
#define | IS_SDADC_IT(IT) ((((IT) & (uint32_t)0xFFFFFFE0) == 0x00000000) && ((IT) != 0x00000000)) |
#define | IS_SDADC_GET_IT(IT) |
#define | IS_SDADC_CLEAR_IT(IT) ((((IT) & (uint32_t)0xFFFFFFEA) == 0x00000000) && ((IT) != 0x00000000)) |
#define | SDADC_FLAG_EOCAL ((uint32_t)0x00000001) |
#define | SDADC_FLAG_JEOC ((uint32_t)0x00000002) |
#define | SDADC_FLAG_JOVR ((uint32_t)0x00000004) |
#define | SDADC_FLAG_REOC ((uint32_t)0x00000008) |
#define | SDADC_FLAG_ROVR ((uint32_t)0x00000010) |
#define | SDADC_FLAG_CALIBIP ((uint32_t)0x00001000) |
#define | SDADC_FLAG_JCIP ((uint32_t)0x00002000) |
#define | SDADC_FLAG_RCIP ((uint32_t)0x00004000) |
#define | SDADC_FLAG_STABIP ((uint32_t)0x00008000) |
#define | SDADC_FLAG_INITRDY ((uint32_t)0x80000000) |
#define | IS_SDADC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFFFE0) == 0x00000000) && ((FLAG) != 0x00000000)) |
#define | IS_SDADC_GET_FLAG(FLAG) |
Functions | |
void | SDADC_DeInit (SDADC_TypeDef *SDADCx) |
Deinitializes SDADCx peripheral registers to their default reset values. More... | |
void | SDADC_Init (SDADC_TypeDef *SDADCx, SDADC_InitTypeDef *SDADC_InitStruct) |
Initializes the SDADCx peripheral according to the specified parameters in the SDADC_InitStruct. More... | |
void | SDADC_StructInit (SDADC_InitTypeDef *SDADC_InitStruct) |
Fills each SDADC_InitStruct member with its default value. More... | |
void | SDADC_AINInit (SDADC_TypeDef *SDADCx, uint32_t SDADC_Conf, SDADC_AINStructTypeDef *SDADC_AINStruct) |
Configures the analog input mode. More... | |
void | SDADC_AINStructInit (SDADC_AINStructTypeDef *SDADC_AINStruct) |
Fills each SDADC_AINStruct member with its default value. More... | |
void | SDADC_ChannelConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_Channel, uint32_t SDADC_Conf) |
Configures the SDADCx channel. More... | |
void | SDADC_Cmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the specified SDADC peripheral. More... | |
void | SDADC_InitModeCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the initialization mode for specified SDADC peripheral. More... | |
void | SDADC_FastConversionCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the fast conversion mode for the SDADC. More... | |
void | SDADC_VREFSelect (uint32_t SDADC_VREF) |
Selects the reference voltage. More... | |
void | SDADC_CalibrationSequenceConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_CalibrationSequence) |
Configures the calibration sequence. More... | |
void | SDADC_StartCalibration (SDADC_TypeDef *SDADCx) |
Launches a request to start the calibration sequence. More... | |
void | SDADC_ChannelSelect (SDADC_TypeDef *SDADCx, uint32_t SDADC_Channel) |
Selects the SDADC channel to be used for regular conversion. More... | |
void | SDADC_ContinuousModeCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the SDADC continuous conversion mode. When enabled, the regular channel is converted repeatedly after each conversion request. When disabled, the regular channel is converted once for each conversion request. More... | |
void | SDADC_SoftwareStartConv (SDADC_TypeDef *SDADCx) |
Enables the selected SDADC software start conversion of the regular channels. More... | |
int16_t | SDADC_GetConversionValue (SDADC_TypeDef *SDADCx) |
Returns the last SDADC conversion result data for regular channel. More... | |
void | SDADC_RegularSynchroSDADC1 (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Launches SDADC2/SDADC3 regular conversion synchronously with SDADC1. More... | |
uint32_t | SDADC_GetConversionSDADC12Value (void) |
Returns the last conversion result data for regular channel of SDADC1 and SDADC2. RSYNC bit of the SDADC2 should be already set. More... | |
uint32_t | SDADC_GetConversionSDADC13Value (void) |
Returns the last conversion result data for regular channel of SDADC1 and SDADC3. RSYNC bit of the SDADC3 should be already set. More... | |
void | SDADC_SoftwareStartInjectedConv (SDADC_TypeDef *SDADCx) |
Enables the selected SDADC software start conversion of the injected channels. More... | |
void | SDADC_InjectedChannelSelect (SDADC_TypeDef *SDADCx, uint32_t SDADC_Channel) |
Selects the SDADC injected channel(s). More... | |
void | SDADC_DelayStartInjectedConvCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables delayed start of injected conversions. More... | |
void | SDADC_InjectedContinuousModeCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the continuous mode for injected channels for the specified SDADC. More... | |
void | SDADC_ExternalTrigInjectedConvConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_ExternalTrigInjecConv) |
Configures the SDADCx external trigger for injected channels conversion. More... | |
void | SDADC_ExternalTrigInjectedConvEdgeConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_ExternalTrigInjecConvEdge) |
Configures the SDADCx external trigger edge for injected channels conversion. More... | |
uint32_t | SDADC_GetInjectedChannel (SDADC_TypeDef *SDADCx) |
Returns the injected channel most recently converted for the specified SDADC. More... | |
int16_t | SDADC_GetInjectedConversionValue (SDADC_TypeDef *SDADCx, uint32_t *SDADC_Channel) |
Returns the SDADC injected channel conversion result. More... | |
void | SDADC_InjectedSynchroSDADC1 (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Launches injected conversion synchronously with SDADC1. More... | |
uint32_t | SDADC_GetInjectedConversionSDADC12Value (void) |
Returns the last conversion result data for injected channel of SDADC1 and SDADC2. JSYNC bit of the SDADC2 should be already set. More... | |
uint32_t | SDADC_GetInjectedConversionSDADC13Value (void) |
Returns the last conversion result data for injected channel of SDADC1 and SDADC3. JSYNC bit of the SDADC3 should be already set. More... | |
void | SDADC_PowerDownCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the SDADC power down mode when idle. More... | |
void | SDADC_StandbyCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the SDADC standby mode when idle. More... | |
void | SDADC_SlowClockCmd (SDADC_TypeDef *SDADCx, FunctionalState NewState) |
Enables or disables the SDADC in slow clock mode. More... | |
void | SDADC_DMAConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_DMATransfer, FunctionalState NewState) |
Configures the DMA transfer for regular/injected conversions. More... | |
void | SDADC_ITConfig (SDADC_TypeDef *SDADCx, uint32_t SDADC_IT, FunctionalState NewState) |
Enables or disables the specified SDADC interrupts. More... | |
FlagStatus | SDADC_GetFlagStatus (SDADC_TypeDef *SDADCx, uint32_t SDADC_FLAG) |
Checks whether the specified SDADC flag is set or not. More... | |
void | SDADC_ClearFlag (SDADC_TypeDef *SDADCx, uint32_t SDADC_FLAG) |
Clears the SDADCx pending flags. More... | |
ITStatus | SDADC_GetITStatus (SDADC_TypeDef *SDADCx, uint32_t SDADC_IT) |
Checks whether the specified SDADC interrupt has occurred or not. More... | |
void | SDADC_ClearITPendingBit (SDADC_TypeDef *SDADCx, uint32_t SDADC_IT) |
Clears the SDADCx interrupt pending bits. More... | |
This file contains all the functions prototypes for the SDADC firmware library.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.