亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? stm32f10x_adc.c

?? STM32F RFID通訊源代碼(支持雙向發(fā)送接收)
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
  ADCx->SQJR = tmpreg1;
}

/*******************************************************************************
* Function Name  : ADC_InjectedSequencerLengthConfig
* Description    : Configures the sequencer for injected channels
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - Length: The sequencer length.
*                    This parameter must be a number between 1 to 4.
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_InjectedSequencerLengthConfig(ADC_TypeDef* ADCx, u8 Length)
{
  u32 tmpreg1 = 0;
  u8 tmpreg2 = 0;

  /* Get the old register value */
  tmpreg1 = ADCx->SQJR;
  /* Clear the old injected sequnence lenght LJ bits */
  tmpreg1 &= SQJR_LJ_Reset;
  /* Set the Sinjected sequnence lenght LJ bits */
  tmpreg2 = Length - 1;
  tmpreg1 |= tmpreg2 << 20;
  /* Store the new register value */
  ADCx->SQJR = tmpreg1;
}

/*******************************************************************************
* Function Name  : ADC_SetInjectedOffset
* Description    : Set the injected channels conversion value offset
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_InjectedChannel: the ADC injected channel to set its
*                    offset.
*                    This parameter can be one of the following values:
*                       - ADC_InjectedChannel1: Injected Channel1 selected
*                       - ADC_InjectedChannel2: Injected Channel2 selected
*                       - ADC_InjectedChannel3: Injected Channel3 selected
*                       - ADC_InjectedChannel4: Injected Channel4 selected
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_SetInjectedOffset(ADC_TypeDef* ADCx, u8 ADC_InjectedChannel, u16 Offset)
{
  /* Set the selected injected channel data offset */
  *((u32 *)((*(u32*)&ADCx) + ADC_InjectedChannel)) = (u32)Offset;
}

/*******************************************************************************
* Function Name  : ADC_GetInjectedConversionValue
* Description    : Returns the ADC conversion result data for the selected
*                  injected channel
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_InjectedChannel: the converted ADC injected channel.
*                    This parameter can be one of the following values:
*                       - ADC_InjectedChannel1: Injected Channel1 selected
*                       - ADC_InjectedChannel2: Injected Channel2 selected
*                       - ADC_InjectedChannel3: Injected Channel3 selected
*                       - ADC_InjectedChannel4: Injected Channel4 selected
* Output         : None
* Return         : The Data conversion value.
*******************************************************************************/
u16 ADC_GetInjectedConversionValue(ADC_TypeDef* ADCx, u8 ADC_InjectedChannel)
{
  /* Returns the selected injected channel conversion data value */
  return (u16) *((u32 *)(ADCx->SR + ADC_InjectedChannel));
}

/*******************************************************************************
* Function Name  : ADC_AnalogWatchdogCmd
* Description    : Enables or disables the analog watchdog on single/all regular
*                  or injected channels
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_AnalogWatchdog: the ADC analog watchdog configuration.
*                    This parameter can be one of the following values:
*                       - ADC_AnalogWatchdog_SingleEnable: Analog watchdog on
*                         a single regular channel
*                       - ADC_AnalogWatchdog_AllRegEnable: Analog watchdog on
*                         all regular channel
*                       - ADC_AnalogWatchdog_AllInjecEnable: Analog watchdog on
*                         all injected channel
*                       - ADC_AnalogWatchdog_AllRegAllInjecEnable: Analog watchdog
*                         on all regular and injected channels
*                       - ADC_AnalogWatchdog_None: No channel guarded by the
*                         analog watchdog
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_AnalogWatchdogCmd(ADC_TypeDef* ADCx, u32 ADC_AnalogWatchdog)
{
  u32 tmpreg = 0;

  /* Get the old register value */
  tmpreg = ADCx->CR1;
  /* Clear AWDEN, AWDENJ and AWDSGL bits */
  tmpreg &= CR1_AWDMode_Reset;
  /* Set the analog watchdog enable mode */
  tmpreg |= ADC_AnalogWatchdog;
  /* Store the new register value */
  ADCx->CR1 = tmpreg;
}

/*******************************************************************************
* Function Name  : ADC_AnalogWatchdogThresholdsConfig
* Description    : Configures the High and low thresholds of the analog watchdog.
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - HighThreshold: the ADC analog watchdog High threshold value.
*                    This parameter must be a 12bit value.
*                  - LowThreshold: the ADC analog watchdog Low threshold value.
*                    This parameter must be a 12bit value.
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_AnalogWatchdogThresholdsConfig(ADC_TypeDef* ADCx, u16 HighThreshold,
                                        u16 LowThreshold)
{
  /* Set the ADCx high threshold */
  ADCx->HTR = HighThreshold;
  /* Set the ADCx low threshold */
  ADCx->LTR = LowThreshold;
}

/*******************************************************************************
* Function Name  : ADC_AnalogWatchdogSingleChannelConfig
* Description    : Configures the analog watchdog guarded single channel
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_Channel: the ADC channel to configure for the analog
*                    watchdog.
*                    This parameter can be one of the following values:
*                       - ADC_Channel0: ADC Channel0 selected
*                       - ADC_Channel1: ADC Channel1 selected
*                       - ADC_Channel2: ADC Channel2 selected
*                       - ADC_Channel3: ADC Channel3 selected
*                       - ADC_Channel4: ADC Channel4 selected
*                       - ADC_Channel5: ADC Channel5 selected
*                       - ADC_Channel6: ADC Channel6 selected
*                       - ADC_Channel7: ADC Channel7 selected
*                       - ADC_Channel8: ADC Channel8 selected
*                       - ADC_Channel9: ADC Channel9 selected
*                       - ADC_Channel10: ADC Channel10 selected
*                       - ADC_Channel11: ADC Channel11 selected
*                       - ADC_Channel12: ADC Channel12 selected
*                       - ADC_Channel13: ADC Channel13 selected
*                       - ADC_Channel14: ADC Channel14 selected
*                       - ADC_Channel15: ADC Channel15 selected
*                       - ADC_Channel16: ADC Channel16 selected
*                       - ADC_Channel17: ADC Channel17 selected
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_AnalogWatchdogSingleChannelConfig(ADC_TypeDef* ADCx, u8 ADC_Channel)
{
  u32 tmpreg = 0;

  /* Get the old register value */
  tmpreg = ADCx->CR1;
  /* Clear the Analog watchdog channel select bits */
  tmpreg &= CR1_AWDCH_Reset;
  /* Set the Analog watchdog channel */
  tmpreg |= ADC_Channel;
  /* Store the new register value */
  ADCx->CR1 = tmpreg;
}

/*******************************************************************************
* Function Name  : ADC_TempSensorCmd
* Description    : Enables or disables the temperature sensor.
* Input          : - NewState: new state of the temperature sensor.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_TempSensorCmd(FunctionalState NewState)
{
  if (NewState != DISABLE)
  {
    /* Enable the temperature sensor  */
    ADC1->CR2 |= CR2_TSPD_Set;
  }
  else
  {
    /* Disable the temperature sensor */
    ADC1->CR2 &= CR2_TSPD_Reset;
  }
}

/*******************************************************************************
* Function Name  : ADC_GetFlagStatus
* Description    : Checks whether the specified ADC flag is set or not.
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_FLAG: specifies the flag to check.
*                    This parameter can be one of the following values:
*                       - ADC_FLAG_AWDOG: Analog watchdog flag
*                       - ADC_FLAG_EOC: End of conversion flag
*                       - ADC_FLAG_JEOC: End of injected group conversion flag
*                       - ADC_FLAG_JSTRT: Start of injected group conversion flag
*                       - ADC_FLAG_RSTRT: Start of regular group conversion flag
* Output         : None
* Return         : The new state of ADC_FLAG (SET or RESET).
*******************************************************************************/
FlagStatus ADC_GetFlagStatus(ADC_TypeDef* ADCx, u8 ADC_FLAG)
{
  FlagStatus bitstatus = RESET;

  /* Check the status of the specified ADC flag */
  if ((ADCx->SR & ADC_FLAG) != RESET)
  {
    /* ADC_FLAG is set */
    bitstatus = SET;
  }
  else
  {
    /* ADC_FLAG is reset */
    bitstatus = RESET;
  }
  /* Return the ADC_FLAG status */
  return  bitstatus;
}

/*******************************************************************************
* Function Name  : ADC_ClearFlag
* Description    : Clears the ADCx's pending flags.
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_FLAG: specifies the flag to clear.
*                    This parameter can be any combination of the following values:
*                       - ADC_FLAG_AWDOG: Analog watchdog flag
*                       - ADC_FLAG_EOC: End of conversion flag
*                       - ADC_FLAG_JEOC: End of injected group conversion flag
*                       - ADC_FLAG_JSTRT: Start of injected group conversion flag
*                       - ADC_FLAG_RSTRT: Start of regular group conversion flag
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_ClearFlag(ADC_TypeDef* ADCx, u8 ADC_FLAG)
{
  /* Clear the selected ADC flags */
  ADCx->SR &= ~ADC_FLAG;
}

/*******************************************************************************
* Function Name  : ADC_GetITStatus
* Description    : Checks whether the specified ADC interrupt has occurred or not.
* Input          : - ADCx: where x can be 1 or 2 to select the ADC peripheral.
*                  - ADC_IT: specifies the ADC interrupt source to check.
*                    This parameter can be one of the following values:
*                       - ADC_IT_EOC: End of conversion interrupt mask
*                       - ADC_IT_AWDOG: Analog watchdog interrupt mask
*                       - ADC_IT_JEOC: End of injected conversion interrupt mask
* Output         : None
* Return         : The new state of ADC_IT (SET or RESET).
*******************************************************************************/
ITStatus ADC_GetITStatus(ADC_TypeDef* ADCx, u16 ADC_IT)
{
  ITStatus pendingbitstatus = RESET;
  u8 itmask = 0, enablestatus;

  /* Get the ADC IT index */
  itmask = (u8)(ADC_IT >> 8);

  /* Get the ADC_IT enable bit status */
  enablestatus = (ADCx->CR1 & (u8)ADC_IT) ;

  /* Check the status of the specified ADC interrupt */
  if (((ADCx->SR & itmask) != RESET) && enablestatus)
  {
    /* ADC_IT is set */
    pendingbitstatus = SET;
  }
  else
  {
    /* ADC_IT is reset */
    pendingbitstatus = RESET;
  }
  /* Return the ADC_IT status */
  return  pendingbitstatus;
}

/*******************************************************************************
* Function Name  : ADC_ClearITPendingBit
* Description    : Clears the ADC抯 interrupt pending bits.
* Input          : - ADC_IT: specifies the ADC interrupt pending bit to clear.
*                    This parameter can be any combination of the following values:
*                       - ADC_IT_EOC: End of conversion interrupt mask
*                       - ADC_IT_AWDOG: Analog watchdog interrupt mask
*                       - ADC_IT_JEOC: End of injected conversion interrupt mask
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_ClearITPendingBit(ADC_TypeDef* ADCx, u8 ADC_IT)
{
  u8 itmask = 0;

  /* Get the ADC IT index */
  itmask = (u8)(ADC_IT >> 8);

  /* Clear the selected ADC interrupt pending bits */
  ADCx->SR &= ~itmask;
}

/******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合 综合色| 轻轻草成人在线| 亚洲一卡二卡三卡四卡无卡久久| 一区二区久久久久| 麻豆一区二区三| va亚洲va日韩不卡在线观看| 欧美午夜一区二区三区免费大片| 日韩欧美国产精品| 中文字幕亚洲成人| 青青草91视频| jvid福利写真一区二区三区| 3atv一区二区三区| 中文字幕一区二区三区四区不卡| 午夜一区二区三区视频| 国产精品99久久久| 欧美性感一类影片在线播放| 久久久精品免费网站| 亚洲电影一区二区三区| 国产乱色国产精品免费视频| 欧美三级电影网| 国产精品无遮挡| 日韩电影网1区2区| 91视频在线观看免费| 精品国产91亚洲一区二区三区婷婷| 亚洲欧美日韩一区| 精品一区二区三区的国产在线播放| 99久免费精品视频在线观看| 日韩欧美电影一二三| 亚洲综合小说图片| 粉嫩aⅴ一区二区三区四区五区| 欧美日韩高清影院| 亚洲欧洲国产专区| 狠狠色狠狠色综合系列| 欧美网站大全在线观看| 国产精品麻豆久久久| 免费看黄色91| 欧美色综合影院| 中文字幕日本不卡| 国产精品亚洲一区二区三区在线| 91精品国模一区二区三区| 亚洲日本乱码在线观看| 国产一区二区久久| 6080国产精品一区二区| 亚洲精品高清视频在线观看| 成人做爰69片免费看网站| 91精品国产欧美一区二区18| 一区二区高清免费观看影视大全 | 99久久99久久精品免费看蜜桃 | 九色porny丨国产精品| 欧美在线视频不卡| 中文字幕一区二区三区不卡在线 | 国产精品萝li| 国产精品资源站在线| 精品久久久影院| 免费三级欧美电影| 欧美高清一级片在线| 亚洲最大成人综合| 91亚洲永久精品| 国产精品私人影院| 成人午夜视频在线观看| 国产亚洲污的网站| 国产精品一区专区| 久久久亚洲精品一区二区三区| 麻豆精品视频在线| 日韩欧美视频在线| 奇米影视在线99精品| 91精品国产高清一区二区三区 | 91激情在线视频| 国产精品进线69影院| 成人精品一区二区三区四区| 国产清纯白嫩初高生在线观看91| 国产成人精品网址| 欧美激情一区二区三区不卡 | 久久精品亚洲国产奇米99| 裸体歌舞表演一区二区| 欧美一级午夜免费电影| 麻豆国产91在线播放| 日韩免费电影一区| 狠狠色丁香久久婷婷综| 久久久久久夜精品精品免费| 国产剧情一区二区三区| 中文字幕精品—区二区四季| 成人av影视在线观看| 综合久久综合久久| 在线日韩av片| 日韩专区欧美专区| 精品日韩在线一区| 国产福利不卡视频| 综合激情网...| 欧美午夜影院一区| 麻豆国产一区二区| 国产欧美在线观看一区| av一区二区三区在线| 亚洲精品自拍动漫在线| 欧美日韩dvd在线观看| 久久精品99国产精品日本| 久久久亚洲精华液精华液精华液| 成人美女视频在线看| 亚洲精品国产精品乱码不99| 在线不卡免费欧美| 国产乱人伦精品一区二区在线观看| 国产精品女主播av| 欧美在线观看一区| 久久精品国产久精国产| 欧美国产精品劲爆| 在线观看欧美日本| 麻豆精品一区二区综合av| 中文字幕免费观看一区| 欧美三级中文字幕在线观看| 久久国产乱子精品免费女| 国产精品伦理在线| 欧美男同性恋视频网站| 国产福利精品一区| 亚洲国产中文字幕| 久久婷婷色综合| 91视频在线观看| 久久99国产精品成人| 中文字幕亚洲区| 日韩一区二区不卡| 成a人片亚洲日本久久| 午夜精品爽啪视频| 国产欧美日韩视频在线观看| 欧美午夜一区二区三区免费大片| 国产尤物一区二区在线| 有码一区二区三区| 久久久亚洲国产美女国产盗摄| 在线免费观看日韩欧美| 国产高清精品在线| 首页亚洲欧美制服丝腿| 国产精品久久久久久户外露出| 欧美精选午夜久久久乱码6080| 丁香婷婷综合激情五月色| 视频一区国产视频| 亚洲视频资源在线| 亚洲精品在线观看视频| 欧美日韩在线三级| 成人av网站在线| 久久丁香综合五月国产三级网站| 一区二区三区中文在线| 久久先锋影音av| 91精品国产色综合久久ai换脸| 91女厕偷拍女厕偷拍高清| 精品夜夜嗨av一区二区三区| 亚洲一区二区欧美日韩| 中文字幕乱码久久午夜不卡| 日韩欧美中文字幕精品| 欧美自拍丝袜亚洲| 成人手机在线视频| 国内精品国产成人| 视频一区二区国产| 亚洲精品你懂的| 国产视频一区二区在线观看| 777xxx欧美| 欧美影院精品一区| 91丨九色porny丨蝌蚪| 国产成人福利片| 欧美性受xxxx黑人xyx| 国产做a爰片久久毛片| 亚洲成va人在线观看| 亚洲男人的天堂在线观看| 国产欧美日韩久久| 久久久午夜电影| 日韩女优制服丝袜电影| 91精品婷婷国产综合久久| 色欧美88888久久久久久影院| 成人一区在线看| 国产精品18久久久久久vr| 久久机这里只有精品| 男人的天堂久久精品| 日韩在线播放一区二区| 亚洲国产成人tv| 一区二区三区在线观看动漫| 国产精品国产三级国产普通话蜜臀 | 欧美做爰猛烈大尺度电影无法无天| 成人免费av在线| 国产99久久久久| 国产风韵犹存在线视精品| 国产一区二区福利视频| 韩国中文字幕2020精品| 六月婷婷色综合| 精品亚洲成av人在线观看| 久久国产精品一区二区| 激情六月婷婷久久| 国产乱子伦视频一区二区三区 | 欧美精品一区二区久久久| 精品日韩在线观看| 精品国产露脸精彩对白| 日韩免费在线观看| 精品久久一二三区| 26uuu久久天堂性欧美| 精品国产乱码久久久久久浪潮| 日韩免费观看高清完整版在线观看| 日韩一区二区视频在线观看| 日韩欧美一级特黄在线播放| 欧美成人a∨高清免费观看| 久久综合国产精品| 欧美国产日韩精品免费观看| 亚洲欧美在线另类| 亚洲中国最大av网站| 日日夜夜精品视频免费|