libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_can.c
/**
  * @brief  Select the start bank filter for slave CAN.
  * @note   This function applies only to STM32 Connectivity line devices.
  * @param  CAN_BankNumber: Select the start slave bank filter from 1..27.
  * @retval None.
  */
@brief  Select the start bank filter for slave CAN.
@note   This function applies only to STM32 Connectivity line devices.
@param  CAN_BankNumber: Select the start slave bank filter from 1..27.
@retval None.
@brief Select the start bank filter for slave CAN . @note This function applies only to STM32 Connectivity line devices . @param CAN_BankNumber : Select the start slave bank filter from 1 .. 27 . @retval None .
void CAN_SlaveStartBank(uint8_t CAN_BankNumber) 
{
  assert_param(IS_CAN_BANKNUMBER(CAN_BankNumber));
  CAN1->FMR |= FMR_FINIT;
  CAN1->FMR &= (uint32_t)0xFFFFC0F1 ;
  CAN1->FMR |= (uint32_t)(CAN_BankNumber)<<8;
  CAN1->FMR &= ~FMR_FINIT;
}
void CAN_SlaveStartBank ( uint8_t CAN_BankNumber ) { assert_param ( IS_CAN_BANKNUMBER ( CAN_BankNumber ) ) ; CAN1 -> FMR |= FMR_FINIT ; CAN1 -> FMR &= ( uint32_t ) 0xFFFFC0F1 ; CAN1 -> FMR |= ( uint32_t ) ( CAN_BankNumber ) << 8 ; CAN1 -> FMR &= ~ FMR_FINIT ; }
@brief  Select the start bank filter for slave CAN.
@brief Select the start bank filter for slave CAN .
/* Check the parameters */ /* Enter Initialisation mode for the filter */ /* Select the start slave bank */ /* Leave Initialisation mode for the filter */