Examples/Crusher/Linux/stm32/firmware/lib/src/peripherals/stm32f4xx_can.c
/**
  * @brief  Checks whether the CAN interrupt has occurred or not.
  * @param  CAN_Reg: specifies the CAN interrupt register to check.
  * @param  It_Bit: specifies the interrupt source bit to check.
  * @retval The new state of the CAN Interrupt (SET or RESET).
  */
@brief  Checks whether the CAN interrupt has occurred or not.
@param  CAN_Reg: specifies the CAN interrupt register to check.
@param  It_Bit: specifies the interrupt source bit to check.
@retval The new state of the CAN Interrupt (SET or RESET).
@brief Checks whether the CAN interrupt has occurred or not . @param CAN_Reg : specifies the CAN interrupt register to check . @param It_Bit : specifies the interrupt source bit to check . @retval The new state of the CAN Interrupt ( SET or RESET ) .
static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit)
{
  ITStatus pendingbitstatus = RESET;
  if ((CAN_Reg & It_Bit) != (uint32_t)RESET)
  {
    pendingbitstatus = SET;
  }
  else
  {
    pendingbitstatus = RESET;
  }
  return pendingbitstatus;
}
static ITStatus CheckITStatus ( uint32_t CAN_Reg , uint32_t It_Bit ) { ITStatus pendingbitstatus = RESET ; if ( ( CAN_Reg & It_Bit ) != ( uint32_t ) RESET ) { pendingbitstatus = SET ; } else { pendingbitstatus = RESET ; } return pendingbitstatus ; }
@brief  Checks whether the CAN interrupt has occurred or not.
@brief Checks whether the CAN interrupt has occurred or not .
/* CAN_IT is set */ /* CAN_IT is reset */