|
Functions | |
| void | CAN_CancelTransmit (CAN_TypeDef *CANx, uint8_t Mailbox) |
| Cancels a transmit request. More... | |
| void | CAN_ClearFlag (CAN_TypeDef *CANx, uint32_t CAN_FLAG) |
| Clears the CAN's pending flags. More... | |
| void | CAN_ClearITPendingBit (CAN_TypeDef *CANx, uint32_t CAN_IT) |
| Clears the CANx's interrupt pending bits. More... | |
| void | CAN_DBGFreeze (CAN_TypeDef *CANx, FunctionalState NewState) |
| Enables or disables the DBG Freeze for CAN. More... | |
| void | CAN_DeInit (CAN_TypeDef *CANx) |
| Deinitializes the CAN peripheral registers to their default reset values. More... | |
| void | CAN_FIFORelease (CAN_TypeDef *CANx, uint8_t FIFONumber) |
| Releases the specified receive FIFO. More... | |
| void | CAN_FilterInit (CAN_FilterInitTypeDef *CAN_FilterInitStruct) |
| Configures the CAN reception filter according to the specified parameters in the CAN_FilterInitStruct. More... | |
| FlagStatus | CAN_GetFlagStatus (CAN_TypeDef *CANx, uint32_t CAN_FLAG) |
| Checks whether the specified CAN flag is set or not. More... | |
| ITStatus | CAN_GetITStatus (CAN_TypeDef *CANx, uint32_t CAN_IT) |
| Checks whether the specified CANx interrupt has occurred or not. More... | |
| uint8_t | CAN_GetLastErrorCode (CAN_TypeDef *CANx) |
| Returns the CANx's last error code (LEC). More... | |
| uint8_t | CAN_GetLSBTransmitErrorCounter (CAN_TypeDef *CANx) |
| Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC). More... | |
| uint8_t | CAN_GetReceiveErrorCounter (CAN_TypeDef *CANx) |
| Returns the CANx Receive Error Counter (REC). More... | |
| uint8_t | CAN_Init (CAN_TypeDef *CANx, CAN_InitTypeDef *CAN_InitStruct) |
| Initializes the CAN peripheral according to the specified parameters in the CAN_InitStruct. More... | |
| void | CAN_ITConfig (CAN_TypeDef *CANx, uint32_t CAN_IT, FunctionalState NewState) |
| Enables or disables the specified CANx interrupts. More... | |
| uint8_t | CAN_MessagePending (CAN_TypeDef *CANx, uint8_t FIFONumber) |
| Returns the number of pending received messages. More... | |
| uint8_t | CAN_OperatingModeRequest (CAN_TypeDef *CANx, uint8_t CAN_OperatingMode) |
| Selects the CAN Operation mode. More... | |
| void | CAN_Receive (CAN_TypeDef *CANx, uint8_t FIFONumber, CanRxMsg *RxMessage) |
| Receives a correct CAN frame. More... | |
| void | CAN_SlaveStartBank (uint8_t CAN_BankNumber) |
| Select the start bank filter for slave CAN. More... | |
| uint8_t | CAN_Sleep (CAN_TypeDef *CANx) |
| Enters the Sleep (low power) mode. More... | |
| void | CAN_StructInit (CAN_InitTypeDef *CAN_InitStruct) |
| Fills each CAN_InitStruct member with its default value. More... | |
| uint8_t | CAN_Transmit (CAN_TypeDef *CANx, CanTxMsg *TxMessage) |
| Initiates and transmits a CAN frame message. More... | |
| uint8_t | CAN_TransmitStatus (CAN_TypeDef *CANx, uint8_t TransmitMailbox) |
| Checks the transmission status of a CAN Frame. More... | |
| void | CAN_TTComModeCmd (CAN_TypeDef *CANx, FunctionalState NewState) |
| Enables or disables the CAN Time TriggerOperation communication mode. More... | |
| uint8_t | CAN_WakeUp (CAN_TypeDef *CANx) |
| Wakes up the CAN peripheral from sleep mode . More... | |
| void CAN_CancelTransmit | ( | CAN_TypeDef * | CANx, |
| uint8_t | Mailbox | ||
| ) |
Cancels a transmit request.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| Mailbox | Mailbox number. |
| None |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| Mailbox | Mailbox number. |
| None |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| Mailbox | Mailbox number. |
| None. |
Definition at line 703 of file stm32f4xx_can.c.
| void CAN_ClearFlag | ( | CAN_TypeDef * | CANx, |
| uint32_t | CAN_FLAG | ||
| ) |
Clears the CAN's pending flags.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_FLAG | specifies the flag to clear. This parameter can be one of the following values:
|
| None |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_FLAG | specifies the flag to clear. This parameter can be one of the following flags:
|
| None. |
Definition at line 1430 of file stm32f4xx_can.c.
| void CAN_ClearITPendingBit | ( | CAN_TypeDef * | CANx, |
| uint32_t | CAN_IT | ||
| ) |
Clears the CANx's interrupt pending bits.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_IT | specifies the interrupt pending bit to clear. This parameter can be one of the following values:
|
| None |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_IT | specifies the interrupt pending bit to clear.
|
| None. |
Definition at line 1594 of file stm32f4xx_can.c.
| void CAN_DBGFreeze | ( | CAN_TypeDef * | CANx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the DBG Freeze for CAN.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| NewState | new state of the CAN peripheral. This parameter can be: ENABLE (CAN reception/transmission is frozen during debug. Reception FIFOs can still be accessed/controlled normally) or DISABLE (CAN is working during debug). |
| None |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| NewState | new state of the CAN peripheral. This parameter can be: ENABLE or DISABLE. |
| None. |
Definition at line 493 of file stm32f4xx_can.c.
| void CAN_DeInit | ( | CAN_TypeDef * | CANx | ) |
Deinitializes the CAN peripheral registers to their default reset values.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| None. |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| None. |
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| None. |
Definition at line 167 of file stm32f4xx_can.c.
| void CAN_FIFORelease | ( | CAN_TypeDef * | CANx, |
| uint8_t | FIFONumber | ||
| ) |
Releases the specified receive FIFO.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| FIFONumber | FIFO to release, CAN_FIFO0 or CAN_FIFO1. |
| None |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| FIFONumber | FIFO to release, CAN_FIFO0 or CAN_FIFO1. |
| None | Releases the specified receive FIFO. |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| FIFONumber | FIFO to release, CAN_FIFO0 or CAN_FIFO1. |
| None. |
Definition at line 799 of file stm32f4xx_can.c.
| void CAN_FilterInit | ( | CAN_FilterInitTypeDef * | CAN_FilterInitStruct | ) |
Configures the CAN reception filter according to the specified parameters in the CAN_FilterInitStruct.
| CAN_FilterInitStruct | pointer to a CAN_FilterInitTypeDef structure that contains the configuration information. |
| None | Configures the CAN reception filter according to the specified parameters in the CAN_FilterInitStruct. |
| CAN_FilterInitStruct | pointer to a CAN_FilterInitTypeDef structure that contains the configuration information. |
| None. |
Definition at line 334 of file stm32f4xx_can.c.
| FlagStatus CAN_GetFlagStatus | ( | CAN_TypeDef * | CANx, |
| uint32_t | CAN_FLAG | ||
| ) |
Checks whether the specified CAN flag is set or not.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
| The | new state of CAN_FLAG (SET or RESET). |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_FLAG | specifies the flag to check. This parameter can be one of the following flags:
|
| The | new state of CAN_FLAG (SET or RESET). |
Definition at line 1330 of file stm32f4xx_can.c.
| ITStatus CAN_GetITStatus | ( | CAN_TypeDef * | CANx, |
| uint32_t | CAN_IT | ||
| ) |
Checks whether the specified CANx interrupt has occurred or not.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_IT | specifies the CAN interrupt source to check. This parameter can be one of the following values:
|
| The | current state of CAN_IT (SET or RESET). |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_IT | specifies the CAN interrupt source to check. This parameter can be one of the following flags:
|
| The | current state of CAN_IT (SET or RESET). |
Definition at line 1490 of file stm32f4xx_can.c.
| uint8_t CAN_GetLastErrorCode | ( | CAN_TypeDef * | CANx | ) |
Returns the CANx's last error code (LEC).
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| Error | code:
|
| CANx | where x can be 1 to select the CAN1 peripheral. |
| Error | code:
|
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_ErrorCode | specifies the Error code :
|
Definition at line 1040 of file stm32f4xx_can.c.
| uint8_t CAN_GetLSBTransmitErrorCounter | ( | CAN_TypeDef * | CANx | ) |
Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC).
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| LSB | of the 9-bit CAN Transmit Error Counter. |
Definition at line 1085 of file stm32f4xx_can.c.
| uint8_t CAN_GetReceiveErrorCounter | ( | CAN_TypeDef * | CANx | ) |
Returns the CANx Receive Error Counter (REC).
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN | Receive Error Counter. |
Definition at line 1065 of file stm32f4xx_can.c.
| uint8_t CAN_Init | ( | CAN_TypeDef * | CANx, |
| CAN_InitTypeDef * | CAN_InitStruct | ||
| ) |
Initializes the CAN peripheral according to the specified parameters in the CAN_InitStruct.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| CAN_InitStruct | pointer to a CAN_InitTypeDef structure that contains the configuration information for the CAN peripheral. |
| Constant | indicates initialization succeed which will be CAN_InitStatus_Failed or CAN_InitStatus_Success. |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| CAN_InitStruct | pointer to a CAN_InitTypeDef structure that contains the configuration information for the CAN peripheral. |
| Constant | indicates initialization succeed which will be CAN_InitStatus_Failed or CAN_InitStatus_Success. |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_InitStruct | pointer to a CAN_InitTypeDef structure that contains the configuration information for the CAN peripheral. |
| Constant | indicates initialization succeed which will be CAN_InitStatus_Failed or CAN_InitStatus_Success. |
Definition at line 197 of file stm32f4xx_can.c.
| void CAN_ITConfig | ( | CAN_TypeDef * | CANx, |
| uint32_t | CAN_IT, | ||
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified CANx interrupts.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_IT | specifies the CAN interrupt sources to be enabled or disabled. This parameter can be:
|
| NewState | new state of the CAN interrupts. This parameter can be: ENABLE or DISABLE. |
| None |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| CAN_IT | specifies the CAN interrupt sources to be enabled or disabled. This parameter can be:
|
| NewState | new state of the CAN interrupts. This parameter can be: ENABLE or DISABLE. |
| None. |
Definition at line 1290 of file stm32f4xx_can.c.
| uint8_t CAN_MessagePending | ( | CAN_TypeDef * | CANx, |
| uint8_t | FIFONumber | ||
| ) |
Returns the number of pending received messages.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| FIFONumber | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
| NbMessage | : which is the number of pending message. |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| FIFONumber | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
| NbMessage | : which is the number of pending message. |
Returns the number of pending received messages.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| FIFONumber | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
| NbMessage | : which is the number of pending message. |
Definition at line 822 of file stm32f4xx_can.c.
| uint8_t CAN_OperatingModeRequest | ( | CAN_TypeDef * | CANx, |
| uint8_t | CAN_OperatingMode | ||
| ) |
Selects the CAN Operation mode.
| CAN_OperatingMode | CAN Operating Mode. This parameter can be one of CAN_OperatingMode_TypeDef enumeration. |
| status | of the requested mode which can be
|
| CAN_OperatingMode | CAN Operating Mode. This parameter can be one of CAN_OperatingMode_TypeDef enumeration. |
| status | of the requested mode which can be:
|
Selects the CAN Operation mode.
| CAN_OperatingMode | : CAN Operating Mode. This parameter can be one of CAN_OperatingMode_TypeDef enumeration. |
| status | of the requested mode which can be
|
Definition at line 872 of file stm32f4xx_can.c.
| void CAN_Receive | ( | CAN_TypeDef * | CANx, |
| uint8_t | FIFONumber, | ||
| CanRxMsg * | RxMessage | ||
| ) |
Receives a correct CAN frame.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| FIFONumber | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
| RxMessage | pointer to a structure receive frame which contains CAN Id, CAN DLC, CAN data and FMI number. |
| None |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| FIFONumber | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
| RxMessage | pointer to a structure receive frame which contains CAN Id, CAN DLC, CAN data and FMI number. |
| None | Receives a correct CAN frame. |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| FIFONumber | Receive FIFO number, CAN_FIFO0 or CAN_FIFO1. |
| RxMessage | pointer to a structure receive message which contains CAN Id, CAN DLC, CAN datas and FMI number. |
| None. |
Definition at line 750 of file stm32f4xx_can.c.
| void CAN_SlaveStartBank | ( | uint8_t | CAN_BankNumber | ) |
Select the start bank filter for slave CAN.
| CAN_BankNumber | Select the start slave bank filter from 1..27. |
| None |
| CAN_BankNumber | Select the start slave bank filter from 1..27. |
| None. |
Definition at line 468 of file stm32f4xx_can.c.
| uint8_t CAN_Sleep | ( | CAN_TypeDef * | CANx | ) |
Enters the Sleep (low power) mode.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| CAN_Sleep_Ok | if sleep entered, CAN_Sleep_Failed otherwise. |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| CAN_Sleep_Ok | if sleep entered, CAN_Sleep_Failed otherwise. |
Enters the Sleep (low power) mode.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| status | CAN_Sleep_Ok if sleep entered, CAN_Sleep_Failed in an other case. |
Definition at line 953 of file stm32f4xx_can.c.
| void CAN_StructInit | ( | CAN_InitTypeDef * | CAN_InitStruct | ) |
Fills each CAN_InitStruct member with its default value.
| CAN_InitStruct | pointer to a CAN_InitTypeDef structure which ill be initialized. |
| None |
| CAN_InitStruct | pointer to a CAN_InitTypeDef structure which will be initialized. |
| None. |
Definition at line 425 of file stm32f4xx_can.c.
| uint8_t CAN_Transmit | ( | CAN_TypeDef * | CANx, |
| CanTxMsg * | TxMessage | ||
| ) |
Initiates and transmits a CAN frame message.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| TxMessage | pointer to a structure which contains CAN Id, CAN DLC and CAN data. |
| The | number of the mailbox that is used for transmission or CAN_TxStatus_NoMailBox if there is no empty mailbox. |
Initiates and transmits a CAN frame message.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| TxMessage | pointer to a structure which contains CAN Id, CAN DLC and CAN data. |
| The | number of the mailbox that is used for transmission or CAN_TxStatus_NoMailBox if there is no empty mailbox. |
Definition at line 577 of file stm32f4xx_can.c.
| uint8_t CAN_TransmitStatus | ( | CAN_TypeDef * | CANx, |
| uint8_t | TransmitMailbox | ||
| ) |
Checks the transmission status of a CAN Frame.
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| TransmitMailbox | the number of the mailbox that is used for transmission. |
| CAN_TxStatus_Ok | if the CAN driver transmits the message, CAN_TxStatus_Failed in an other case. |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| TransmitMailbox | the number of the mailbox that is used for transmission. |
| CAN_TxStatus_Ok | if the CAN driver transmits the message, CAN_TxStatus_Failed in an other case. |
Checks the transmission status of a CAN Frame.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| TransmitMailbox | the number of the mailbox that is used for transmission. |
| CAN_TxStatus_Ok | if the CAN driver transmits the message, CAN_TxStatus_Failed in an other case. |
Definition at line 649 of file stm32f4xx_can.c.
| void CAN_TTComModeCmd | ( | CAN_TypeDef * | CANx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the CAN Time TriggerOperation communication mode.
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| NewState | Mode new state. This parameter can be: ENABLE or DISABLE. When enabled, Time stamp (TIME[15:0]) value is sent in the last two data bytes of the 8-byte message: TIME[7:0] in data byte 6 and TIME[15:8] in data byte 7. |
| None | Enables or disables the CAN Time TriggerOperation communication mode. |
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| NewState | : Mode new state , can be one of FunctionalState. |
| None |
Definition at line 523 of file stm32f4xx_can.c.
| uint8_t CAN_WakeUp | ( | CAN_TypeDef * | CANx | ) |
Wakes up the CAN peripheral from sleep mode .
| CANx | where x can be 1 or 2 to select the CAN peripheral. |
| CAN_WakeUp_Ok | if sleep mode left, CAN_WakeUp_Failed otherwise. |
| CANx | where x can be 1 to select the CAN1 peripheral. |
| CAN_WakeUp_Ok | if sleep mode left, CAN_WakeUp_Failed otherwise. |
Wakes up the CAN peripheral from sleep mode .
| CANx | where x can be 1 or 2 to to select the CAN peripheral. |
| status | CAN_WakeUp_Ok if sleep mode left, CAN_WakeUp_Failed in an other case. |
Definition at line 978 of file stm32f4xx_can.c.