libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_can.c
void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct)
{
  /* Reset CAN init structure parameters values */
  
  /* Initialize the time triggered communication mode */
  CAN_InitStruct->CAN_TTCM = DISABLE;
  
  /* Initialize the automatic bus-off management */
  CAN_InitStruct->CAN_ABOM = DISABLE;
  
  /* Initialize the automatic wake-up mode */
  CAN_InitStruct->CAN_AWUM = DISABLE;
  
  /* Initialize the no automatic retransmission */
  CAN_InitStruct->CAN_NART = DISABLE;
  
  /* Initialize the receive FIFO locked mode */
  CAN_InitStruct->CAN_RFLM = DISABLE;
  
  /* Initialize the transmit FIFO priority */
  CAN_InitStruct->CAN_TXFP = DISABLE;
  
  /* Initialize the CAN_Mode member */
  CAN_InitStruct->CAN_Mode = CAN_Mode_Normal;
  
  /* Initialize the CAN_SJW member */
  CAN_InitStruct->CAN_SJW = CAN_SJW_1tq;
  
  /* Initialize the CAN_BS1 member */
  CAN_InitStruct->CAN_BS1 = CAN_BS1_4tq;
  
  /* Initialize the CAN_BS2 member */
  CAN_InitStruct->CAN_BS2 = CAN_BS2_3tq;
  
  /* Initialize the CAN_Prescaler member */
  CAN_InitStruct->CAN_Prescaler = 1;
}
/**
  * @brief  Fills each CAN_InitStruct member with its default value.
  * @param  CAN_InitStruct: pointer to a CAN_InitTypeDef structure which
  *                         will be initialized.
  * @retval None.
  */
@brief  Fills each CAN_InitStruct member with its default value.
@param  CAN_InitStruct: pointer to a CAN_InitTypeDef structure which
will be initialized.
@retval None.
@brief Fills each CAN_InitStruct member with its default value . @param CAN_InitStruct : pointer to a CAN_InitTypeDef structure which will be initialized . @retval None .
void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct)
{
  CAN_InitStruct->CAN_TTCM = DISABLE;
  CAN_InitStruct->CAN_ABOM = DISABLE;
  CAN_InitStruct->CAN_AWUM = DISABLE;
  CAN_InitStruct->CAN_NART = DISABLE;
  CAN_InitStruct->CAN_RFLM = DISABLE;
  CAN_InitStruct->CAN_TXFP = DISABLE;
  CAN_InitStruct->CAN_Mode = CAN_Mode_Normal;
  CAN_InitStruct->CAN_SJW = CAN_SJW_1tq;
  CAN_InitStruct->CAN_BS1 = CAN_BS1_4tq;
  CAN_InitStruct->CAN_BS2 = CAN_BS2_3tq;
  CAN_InitStruct->CAN_Prescaler = 1;
}
void CAN_StructInit ( CAN_InitTypeDef * CAN_InitStruct ) { CAN_InitStruct -> CAN_TTCM = DISABLE ; CAN_InitStruct -> CAN_ABOM = DISABLE ; CAN_InitStruct -> CAN_AWUM = DISABLE ; CAN_InitStruct -> CAN_NART = DISABLE ; CAN_InitStruct -> CAN_RFLM = DISABLE ; CAN_InitStruct -> CAN_TXFP = DISABLE ; CAN_InitStruct -> CAN_Mode = CAN_Mode_Normal ; CAN_InitStruct -> CAN_SJW = CAN_SJW_1tq ; CAN_InitStruct -> CAN_BS1 = CAN_BS1_4tq ; CAN_InitStruct -> CAN_BS2 = CAN_BS2_3tq ; CAN_InitStruct -> CAN_Prescaler = 1 ; }
@brief  Fills each CAN_InitStruct member with its default value.
@brief Fills each CAN_InitStruct member with its default value .
/* Reset CAN init structure parameters values */ /* Initialize the time triggered communication mode */ /* Initialize the automatic bus-off management */ /* Initialize the automatic wake-up mode */ /* Initialize the no automatic retransmission */ /* Initialize the receive FIFO locked mode */ /* Initialize the transmit FIFO priority */ /* Initialize the CAN_Mode member */ /* Initialize the CAN_SJW member */ /* Initialize the CAN_BS1 member */ /* Initialize the CAN_BS2 member */ /* Initialize the CAN_Prescaler member */