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

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

?? stm32f10x_spi.c

?? LCD液晶顯示驅(qū)動(dòng),芯片為ST7565,
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
  SPI_InitStruct->SPI_FirstBit = SPI_FirstBit_MSB;

  /* Initialize the SPI_CRCPolynomial member */
  SPI_InitStruct->SPI_CRCPolynomial = 7;
}

/*******************************************************************************
* Function Name  : I2S_StructInit
* Description    : Fills each I2S_InitStruct member with its default value.
* Input          : - I2S_InitStruct : pointer to a I2S_InitTypeDef structure
*                    which will be initialized.
* Output         : None
* Return         : None
*******************************************************************************/
void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct)
{
/*--------------- Reset I2S init structure parameters values -----------------*/
  /* Initialize the I2S_Mode member */
  I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx;
  
  /* Initialize the I2S_Standard member */
  I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips;
  
  /* Initialize the I2S_DataFormat member */
  I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b;
  
  /* Initialize the I2S_MCLKOutput member */
  I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable;
  
  /* Initialize the I2S_AudioFreq member */
  I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default;
  
  /* Initialize the I2S_CPOL member */
  I2S_InitStruct->I2S_CPOL = I2S_CPOL_Low;
}

/*******************************************************************************
* Function Name  : SPI_Cmd
* Description    : Enables or disables the specified SPI peripheral.
* Input          : - SPIx: where x can be 1, 2 or 3 to select the SPI peripheral.
*                  - NewState: new state of the SPIx peripheral. 
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Enable the selected SPI peripheral */
    SPIx->CR1 |= CR1_SPE_Set;
  }
  else
  {
    /* Disable the selected SPI peripheral */
    SPIx->CR1 &= CR1_SPE_Reset;
  }
}

/*******************************************************************************
* Function Name  : I2S_Cmd
* Description    : Enables or disables the specified SPI peripheral (in I2S mode).
* Input          : - SPIx: where x can be 2 or 3 to select the SPI peripheral.
*                  - NewState: new state of the SPIx peripheral. 
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_SPI_23_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Enable the selected SPI peripheral (in I2S mode) */
    SPIx->I2SCFGR |= I2SCFGR_I2SE_Set;
  }
  else
  {
    /* Disable the selected SPI peripheral (in I2S mode) */
    SPIx->I2SCFGR &= I2SCFGR_I2SE_Reset;
  }
}

/*******************************************************************************
* Function Name  : SPI_I2S_ITConfig
* Description    : Enables or disables the specified SPI/I2S interrupts.
* Input          : - SPIx: where x can be :
*                         - 1, 2 or 3 in SPI mode 
*                         - 2 or 3 in I2S mode
*                  - SPI_I2S_IT: specifies the SPI/I2S interrupt source to be 
*                    enabled or disabled. 
*                    This parameter can be one of the following values:
*                       - SPI_I2S_IT_TXE: Tx buffer empty interrupt mask
*                       - SPI_I2S_IT_RXNE: Rx buffer not empty interrupt mask
*                       - SPI_I2S_IT_ERR: Error interrupt mask
*                  - NewState: new state of the specified SPI/I2S interrupt.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, u8 SPI_I2S_IT, FunctionalState NewState)
{
  u16 itpos = 0, itmask = 0 ;

  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  assert_param(IS_SPI_I2S_CONFIG_IT(SPI_I2S_IT));

  /* Get the SPI/I2S IT index */
  itpos = SPI_I2S_IT >> 4;
  /* Set the IT mask */
  itmask = (u16)((u16)1 << itpos);

  if (NewState != DISABLE)
  {
    /* Enable the selected SPI/I2S interrupt */
    SPIx->CR2 |= itmask;
  }
  else
  {
    /* Disable the selected SPI/I2S interrupt */
    SPIx->CR2 &= (u16)~itmask;
  }
}

/*******************************************************************************
* Function Name  : SPI_I2S_DMACmd
* Description    : Enables or disables the SPIx/I2Sx DMA interface.
* Input          : - SPIx: where x can be :
*                         - 1, 2 or 3 in SPI mode 
*                         - 2 or 3 in I2S mode
*                  - SPI_I2S_DMAReq: specifies the SPI/I2S DMA transfer request 
*                    to be enabled or disabled. 
*                    This parameter can be any combination of the following values:
*                       - SPI_I2S_DMAReq_Tx: Tx buffer DMA transfer request
*                       - SPI_I2S_DMAReq_Rx: Rx buffer DMA transfer request
*                  - NewState: new state of the selected SPI/I2S DMA transfer 
*                    request.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, u16 SPI_I2S_DMAReq, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  assert_param(IS_SPI_I2S_DMAREQ(SPI_I2S_DMAReq));

  if (NewState != DISABLE)
  {
    /* Enable the selected SPI/I2S DMA requests */
    SPIx->CR2 |= SPI_I2S_DMAReq;
  }
  else
  {
    /* Disable the selected SPI/I2S DMA requests */
    SPIx->CR2 &= (u16)~SPI_I2S_DMAReq;
  }
}

/*******************************************************************************
* Function Name  : SPI_I2S_SendData
* Description    : Transmits a Data through the SPIx/I2Sx peripheral.
* Input          : - SPIx: where x can be :
*                         - 1, 2 or 3 in SPI mode 
*                         - 2 or 3 in I2S mode
*                  - Data : Data to be transmitted..
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_I2S_SendData(SPI_TypeDef* SPIx, u16 Data)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  
  /* Write in the DR register the data to be sent */
  SPIx->DR = Data;
}

/*******************************************************************************
* Function Name  : SPI_I2S_ReceiveData
* Description    : Returns the most recent received data by the SPIx/I2Sx peripheral. 
* Input          : - SPIx: where x can be :
*                         - 1, 2 or 3 in SPI mode 
*                         - 2 or 3 in I2S mode
* Output         : None
* Return         : The value of the received data.
*******************************************************************************/
u16 SPI_I2S_ReceiveData(SPI_TypeDef* SPIx)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  
  /* Return the data in the DR register */
  return SPIx->DR;
}

/*******************************************************************************
* Function Name  : SPI_NSSInternalSoftwareConfig
* Description    : Configures internally by software the NSS pin for the selected 
*                  SPI.
* Input          : - SPIx: where x can be 1, 2 or 3 to select the SPI peripheral.
*                  - SPI_NSSInternalSoft: specifies the SPI NSS internal state.
*                    This parameter can be one of the following values:
*                       - SPI_NSSInternalSoft_Set: Set NSS pin internally
*                       - SPI_NSSInternalSoft_Reset: Reset NSS pin internally
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, u16 SPI_NSSInternalSoft)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_SPI_NSS_INTERNAL(SPI_NSSInternalSoft));

  if (SPI_NSSInternalSoft != SPI_NSSInternalSoft_Reset)
  {
    /* Set NSS pin internally by software */
    SPIx->CR1 |= SPI_NSSInternalSoft_Set;
  }
  else
  {
    /* Reset NSS pin internally by software */
    SPIx->CR1 &= SPI_NSSInternalSoft_Reset;
  }
}

/*******************************************************************************
* Function Name  : SPI_SSOutputCmd
* Description    : Enables or disables the SS output for the selected SPI.
* Input          : - SPIx: where x can be 1, 2 or 3 to select the SPI peripheral.
*                  - NewState: new state of the SPIx SS output. 
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Enable the selected SPI SS output */
    SPIx->CR2 |= CR2_SSOE_Set;
  }
  else
  {
    /* Disable the selected SPI SS output */
    SPIx->CR2 &= CR2_SSOE_Reset;
  }
}

/*******************************************************************************
* Function Name  : SPI_DataSizeConfig
* Description    : Configures the data size for the selected SPI.
* Input          : - SPIx: where x can be 1, 2 or 3 to select the SPI peripheral.
*                  - SPI_DataSize: specifies the SPI data size.
*                    This parameter can be one of the following values:
*                       - SPI_DataSize_16b: Set data frame format to 16bit
*                       - SPI_DataSize_8b: Set data frame format to 8bit
* Output         : None
* Return         : None
*******************************************************************************/
void SPI_DataSizeConfig(SPI_TypeDef* SPIx, u16 SPI_DataSize)
{
  /* Check the parameters */
  assert_param(IS_SPI_ALL_PERIPH(SPIx));
  assert_param(IS_SPI_DATASIZE(SPI_DataSize));

  /* Clear DFF bit */
  SPIx->CR1 &= (u16)~SPI_DataSize_16b;
  /* Set new DFF bit value */
  SPIx->CR1 |= SPI_DataSize;
}

/*******************************************************************************
* Function Name  : SPI_TransmitCRC

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人av网| 国产成人精品1024| 国产经典欧美精品| 在线一区二区三区四区| 久久久91精品国产一区二区精品| 亚洲欧美另类综合偷拍| 狠狠色丁香九九婷婷综合五月| 91在线视频18| 久久久久国产精品厨房| 丝袜亚洲另类欧美| 91亚洲精华国产精华精华液| 精品国产乱码久久久久久蜜臀| 亚洲国产精品一区二区www在线| 盗摄精品av一区二区三区| 欧美一区二区三区成人| 亚洲福中文字幕伊人影院| 99re热这里只有精品视频| 久久中文字幕电影| 美女视频一区二区| 欧美日韩一区二区欧美激情 | 欧美电影免费观看高清完整版 | 在线观看欧美精品| 国产精品久久久久三级| 久久精品国产精品亚洲综合| 欧美日韩精品一区二区三区蜜桃 | 国产精品丝袜一区| 激情成人综合网| 欧美成人猛片aaaaaaa| 日韩电影在线一区二区三区| 精品视频一区三区九区| 一区二区三区不卡视频在线观看| 99精品桃花视频在线观看| 国产精品毛片大码女人| 不卡一区二区中文字幕| 中文字幕在线一区| 97久久超碰国产精品电影| 亚洲图片另类小说| 91老师片黄在线观看| 亚洲嫩草精品久久| 欧美在线观看一二区| 亚洲午夜三级在线| 51精品久久久久久久蜜臀| 日本亚洲三级在线| 精品国产一区久久| 大桥未久av一区二区三区中文| 国产亚洲综合色| www.在线成人| 亚洲一二三级电影| 日韩一区二区三区视频在线| 国产一区二区三区免费| 国产欧美一区二区精品婷婷| 99国产一区二区三精品乱码| 一区二区三区四区在线| 欧美日韩久久一区二区| 六月丁香婷婷色狠狠久久| 久久久久国产精品免费免费搜索| 成人免费黄色大片| 偷拍亚洲欧洲综合| 久久久欧美精品sm网站| 色婷婷av一区二区三区大白胸| 午夜伦理一区二区| 久久影院午夜片一区| 91同城在线观看| 美腿丝袜一区二区三区| 国产精品日韩成人| 欧美日韩精品二区第二页| 成人激情视频网站| 日韩高清电影一区| 中文字幕精品—区二区四季| 欧美日韩一区在线观看| 国产精品一区二区黑丝| 亚洲国产视频一区二区| 久久女同互慰一区二区三区| 色拍拍在线精品视频8848| 久久av资源站| 亚洲一级片在线观看| wwwwxxxxx欧美| 精品视频免费在线| 成人免费观看男女羞羞视频| 热久久一区二区| 一区二区三区.www| 国产欧美日韩视频一区二区| 欧美精品在线观看播放| 91免费视频大全| 国产精品影视网| 蜜桃视频免费观看一区| 一区二区在线观看免费| 国产亚洲1区2区3区| 欧美精品欧美精品系列| 91一区二区三区在线观看| 国产成人一区在线| 麻豆精品一区二区综合av| 中文字幕综合网| 久久久久99精品国产片| 91精品国产综合久久蜜臀| 色综合一区二区| 国产不卡免费视频| 激情六月婷婷综合| 日本午夜一区二区| 亚洲成人精品在线观看| 亚洲视频一区二区在线| 久久九九久精品国产免费直播| 欧美人与禽zozo性伦| 91黄色免费版| 色视频成人在线观看免| 不卡av在线免费观看| 国产呦萝稀缺另类资源| 精品亚洲国内自在自线福利| 日韩高清不卡在线| 奇米四色…亚洲| 丝袜美腿高跟呻吟高潮一区| 亚洲五码中文字幕| 亚洲电影一级黄| 亚洲另类在线制服丝袜| 亚洲人成人一区二区在线观看 | 亚洲成人综合视频| 一区二区三区欧美激情| 亚洲品质自拍视频| 亚洲乱码国产乱码精品精98午夜 | 久久精品亚洲国产奇米99| 日韩欧美高清在线| 精品sm捆绑视频| 中文一区一区三区高中清不卡| 国产欧美一区二区在线| 国产精品全国免费观看高清 | 成人午夜av影视| 不卡av在线网| 一本大道av伊人久久综合| 欧美一区二区在线视频| 日韩一级黄色大片| 精品国产3级a| 中文字幕av免费专区久久| 亚洲婷婷在线视频| 亚洲国产综合色| 奇米色一区二区三区四区| 久久国产剧场电影| 国产精品1区二区.| 色国产精品一区在线观看| 欧美日韩国产另类一区| 精品免费日韩av| 国产精品入口麻豆原神| 亚洲成精国产精品女| 老司机精品视频导航| av动漫一区二区| 欧美日韩国产综合一区二区| 精品黑人一区二区三区久久| 国产精品亲子伦对白| 亚洲小说欧美激情另类| 久久成人av少妇免费| 99久久精品国产导航| 欧美一区二区三区视频| 国产欧美中文在线| 亚洲最新视频在线观看| 免费黄网站欧美| 92国产精品观看| 日韩美女视频在线| 中文字幕在线免费不卡| 欧美aaaaaa午夜精品| 成人小视频免费观看| 欧美日精品一区视频| 2021国产精品久久精品| 亚洲日穴在线视频| 国产精品99久久久久久久vr | 精品久久久久久久久久久久包黑料 | av电影在线观看不卡| 欧美一区二区三区免费观看视频 | 欧美xxxx在线观看| 亚洲婷婷综合久久一本伊一区| 免费精品99久久国产综合精品| 国产成人精品免费一区二区| 欧美久久久久免费| 国产情人综合久久777777| 偷偷要91色婷婷| 色呦呦日韩精品| 欧美国产精品劲爆| 久久99精品国产麻豆不卡| 91猫先生在线| 久久九九国产精品| 美女精品一区二区| 欧美最猛黑人xxxxx猛交| 国产人伦精品一区二区| 韩国三级中文字幕hd久久精品| 欧美色精品在线视频| 自拍偷拍国产亚洲| 国产不卡视频在线观看| 日韩精品中文字幕在线一区| 亚洲成人资源在线| 国产成人综合在线观看| 精品国产亚洲在线| 五月激情六月综合| 欧美特级限制片免费在线观看| 国产精品嫩草99a| 国产成人一级电影| 久久综合视频网| 狠狠狠色丁香婷婷综合久久五月| 欧美一区二区啪啪| 亚洲成人www| 欧美二区三区91| 日韩成人精品在线| 在线成人av影院|