STM8S/A Standard Peripherals Drivers: CAN_Registers_Bits_Definition

STM8S/A

STM8S/A Standard Peripherals Drivers
CAN_Registers_Bits_Definition

Defines

#define CAN_DGR_LBKM   ((uint8_t)0x01)
#define CAN_DGR_RX   ((uint8_t)0x08)
#define CAN_DGR_SAMP   ((uint8_t)0x04)
#define CAN_DGR_SLIM   ((uint8_t)0x02)
#define CAN_DGR_TXM2E   ((uint8_t)0x10)
#define CAN_EIER_BOFIE   ((uint8_t)0x04)
#define CAN_EIER_EPVIE   ((uint8_t)0x02)
#define CAN_EIER_ERRIE   ((uint8_t)0x80)
#define CAN_EIER_EWGIE   ((uint8_t)0x01)
#define CAN_EIER_LECIE   ((uint8_t)0x10)
#define CAN_ESR_BOFF   ((uint8_t)0x04)
#define CAN_ESR_EPVF   ((uint8_t)0x02)
#define CAN_ESR_EWGF   ((uint8_t)0x01)
#define CAN_ESR_LEC   ((uint8_t)0x70)
#define CAN_ESR_LEC0   ((uint8_t)0x10)
#define CAN_ESR_LEC1   ((uint8_t)0x20)
#define CAN_ESR_LEC2   ((uint8_t)0x40)
#define CAN_FCR1_FACT0   ((uint8_t)0x01)
#define CAN_FCR1_FACT1   ((uint8_t)0x10)
#define CAN_FCR1_FSC00   ((uint8_t)0x02)
#define CAN_FCR1_FSC01   ((uint8_t)0x04)
#define CAN_FCR1_FSC10   ((uint8_t)0x20)
#define CAN_FCR1_FSC11   ((uint8_t)0x40)
#define CAN_FCR2_FACT2   ((uint8_t)0x01)
#define CAN_FCR2_FACT3   ((uint8_t)0x10)
#define CAN_FCR2_FSC20   ((uint8_t)0x02)
#define CAN_FCR2_FSC21   ((uint8_t)0x04)
#define CAN_FCR2_FSC30   ((uint8_t)0x20)
#define CAN_FCR2_FSC31   ((uint8_t)0x40)
#define CAN_FCR3_FACT4   ((uint8_t)0x01)
#define CAN_FCR3_FACT5   ((uint8_t)0x10)
#define CAN_FCR3_FSC40   ((uint8_t)0x02)
#define CAN_FCR3_FSC41   ((uint8_t)0x04)
#define CAN_FCR3_FSC50   ((uint8_t)0x20)
#define CAN_FCR3_FSC51   ((uint8_t)0x40)
#define CAN_FMR1_FMH0   ((uint8_t)0x02)
#define CAN_FMR1_FMH1   ((uint8_t)0x08)
#define CAN_FMR1_FMH2   ((uint8_t)0x20)
#define CAN_FMR1_FMH3   ((uint8_t)0x80)
#define CAN_FMR1_FML0   ((uint8_t)0x01)
#define CAN_FMR1_FML1   ((uint8_t)0x04)
#define CAN_FMR1_FML2   ((uint8_t)0x10)
#define CAN_FMR1_FML3   ((uint8_t)0x40)
#define CAN_FMR2_FMH4   ((uint8_t)0x02)
#define CAN_FMR2_FMH5   ((uint8_t)0x08)
#define CAN_FMR2_FML4   ((uint8_t)0x01)
#define CAN_FMR2_FML5   ((uint8_t)0x04)
#define CAN_IER_FFIE   ((uint8_t)0x04)
#define CAN_IER_FMPIE   ((uint8_t)0x02)
#define CAN_IER_FOVIE   ((uint8_t)0x08)
#define CAN_IER_TMEIE   ((uint8_t)0x01)
#define CAN_IER_WKUIE   ((uint8_t)0x80)
#define CAN_MCR_ABOM   ((uint8_t)0x40)
#define CAN_MCR_AWUM   ((uint8_t)0x20)
#define CAN_MCR_INRQ   ((uint8_t)0x01)
#define CAN_MCR_NART   ((uint8_t)0x10)
#define CAN_MCR_RFLM   ((uint8_t)0x08)
#define CAN_MCR_SLEEP   ((uint8_t)0x02)
#define CAN_MCR_TTCM   ((uint8_t)0x80)
#define CAN_MCR_TXFP   ((uint8_t)0x04)
#define CAN_MCSR_ABRQ   ((uint8_t)0x02)
#define CAN_MCSR_ALST   ((uint8_t)0x10)
#define CAN_MCSR_RQCP   ((uint8_t)0x04)
#define CAN_MCSR_TERR   ((uint8_t)0x20)
#define CAN_MCSR_TXOK   ((uint8_t)0x08)
#define CAN_MCSR_TXRQ   ((uint8_t)0x01)
#define CAN_MDLCR_DLC   ((uint8_t)0x0F)
#define CAN_MDLCR_TGT   ((uint8_t)0x80)
#define CAN_MIDR1_IDE   ((uint8_t)0x40)
#define CAN_MIDR1_RTR   ((uint8_t)0x20)
#define CAN_MSR_ERRI   ((uint8_t)0x04)
#define CAN_MSR_INAK   ((uint8_t)0x01)
#define CAN_MSR_RX   ((uint8_t)0x20)
#define CAN_MSR_SLAK   ((uint8_t)0x02)
#define CAN_MSR_TX   ((uint8_t)0x10)
#define CAN_MSR_WKUI   ((uint8_t)0x08)
#define CAN_PSR_PS0   ((uint8_t)0x01)
#define CAN_PSR_PS1   ((uint8_t)0x02)
#define CAN_PSR_PS2   ((uint8_t)0x04)
#define CAN_RECR_REC0   ((uint8_t)0x01)
#define CAN_RECR_REC1   ((uint8_t)0x02)
#define CAN_RECR_REC2   ((uint8_t)0x04)
#define CAN_RECR_REC3   ((uint8_t)0x08)
#define CAN_RECR_REC4   ((uint8_t)0x10)
#define CAN_RECR_REC5   ((uint8_t)0x20)
#define CAN_RECR_REC6   ((uint8_t)0x40)
#define CAN_RECR_REC7   ((uint8_t)0x80)
#define CAN_RFR_FMP01   ((uint8_t)0x03)
#define CAN_RFR_FOVR   ((uint8_t)0x10)
#define CAN_RFR_FULL   ((uint8_t)0x08)
#define CAN_RFR_RFOM   ((uint8_t)0x20)
#define CAN_TECR_TEC0   ((uint8_t)0x01)
#define CAN_TECR_TEC1   ((uint8_t)0x02)
#define CAN_TECR_TEC2   ((uint8_t)0x04)
#define CAN_TECR_TEC3   ((uint8_t)0x08)
#define CAN_TECR_TEC4   ((uint8_t)0x10)
#define CAN_TECR_TEC5   ((uint8_t)0x20)
#define CAN_TECR_TEC6   ((uint8_t)0x40)
#define CAN_TECR_TEC7   ((uint8_t)0x80)
#define CAN_TPR_CODE0   ((uint8_t)0x01)
#define CAN_TPR_LOW0   ((uint8_t)0x20)
#define CAN_TPR_LOW1   ((uint8_t)0x40)
#define CAN_TPR_LOW2   ((uint8_t)0x80)
#define CAN_TPR_TME0   ((uint8_t)0x04)
#define CAN_TPR_TME1   ((uint8_t)0x08)
#define CAN_TPR_TME2   ((uint8_t)0x10)
#define CAN_TSR_RQCP0   ((uint8_t)0x01)
#define CAN_TSR_RQCP012   ((uint8_t)0x07)
#define CAN_TSR_RQCP1   ((uint8_t)0x02)
#define CAN_TSR_RQCP2   ((uint8_t)0x04)
#define CAN_TSR_TXOK0   ((uint8_t)0x10)
#define CAN_TSR_TXOK1   ((uint8_t)0x20)
#define CAN_TSR_TXOK2   ((uint8_t)0x40)

Define Documentation

#define CAN_DGR_LBKM   ((uint8_t)0x01)

Definition at line 2383 of file stm8s.h.

#define CAN_DGR_RX   ((uint8_t)0x08)

Definition at line 2386 of file stm8s.h.

#define CAN_DGR_SAMP   ((uint8_t)0x04)

Definition at line 2385 of file stm8s.h.

#define CAN_DGR_SLIM   ((uint8_t)0x02)

Definition at line 2384 of file stm8s.h.

#define CAN_DGR_TXM2E   ((uint8_t)0x10)

Definition at line 2387 of file stm8s.h.

Referenced by CAN_ST7CompatibilityCmd().

#define CAN_EIER_BOFIE   ((uint8_t)0x04)

Definition at line 2424 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_EIER_EPVIE   ((uint8_t)0x02)

Definition at line 2423 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_EIER_ERRIE   ((uint8_t)0x80)

Definition at line 2426 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_EIER_EWGIE   ((uint8_t)0x01)

Definition at line 2422 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_EIER_LECIE   ((uint8_t)0x10)

Definition at line 2425 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_ESR_BOFF   ((uint8_t)0x04)

Definition at line 2415 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_ESR_EPVF   ((uint8_t)0x02)

Definition at line 2414 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_ESR_EWGF   ((uint8_t)0x01)

Definition at line 2413 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_ESR_LEC   ((uint8_t)0x70)

Definition at line 2419 of file stm8s.h.

Referenced by CAN_GetITStatus(), and CAN_GetLastErrorCode().

#define CAN_ESR_LEC0   ((uint8_t)0x10)

Definition at line 2416 of file stm8s.h.

#define CAN_ESR_LEC1   ((uint8_t)0x20)

Definition at line 2417 of file stm8s.h.

#define CAN_ESR_LEC2   ((uint8_t)0x40)

Definition at line 2418 of file stm8s.h.

#define CAN_FCR1_FACT0   ((uint8_t)0x01)

Definition at line 2464 of file stm8s.h.

#define CAN_FCR1_FACT1   ((uint8_t)0x10)

Definition at line 2465 of file stm8s.h.

#define CAN_FCR1_FSC00   ((uint8_t)0x02)

Definition at line 2471 of file stm8s.h.

Referenced by CAN_FilterInit().

#define CAN_FCR1_FSC01   ((uint8_t)0x04)

Definition at line 2472 of file stm8s.h.

Referenced by CAN_FilterInit().

#define CAN_FCR1_FSC10   ((uint8_t)0x20)

Definition at line 2473 of file stm8s.h.

#define CAN_FCR1_FSC11   ((uint8_t)0x40)

Definition at line 2474 of file stm8s.h.

#define CAN_FCR2_FACT2   ((uint8_t)0x01)

Definition at line 2466 of file stm8s.h.

#define CAN_FCR2_FACT3   ((uint8_t)0x10)

Definition at line 2467 of file stm8s.h.

#define CAN_FCR2_FSC20   ((uint8_t)0x02)

Definition at line 2475 of file stm8s.h.

#define CAN_FCR2_FSC21   ((uint8_t)0x04)

Definition at line 2476 of file stm8s.h.

#define CAN_FCR2_FSC30   ((uint8_t)0x20)

Definition at line 2477 of file stm8s.h.

#define CAN_FCR2_FSC31   ((uint8_t)0x40)

Definition at line 2478 of file stm8s.h.

#define CAN_FCR3_FACT4   ((uint8_t)0x01)

Definition at line 2468 of file stm8s.h.

#define CAN_FCR3_FACT5   ((uint8_t)0x10)

Definition at line 2469 of file stm8s.h.

#define CAN_FCR3_FSC40   ((uint8_t)0x02)

Definition at line 2479 of file stm8s.h.

#define CAN_FCR3_FSC41   ((uint8_t)0x04)

Definition at line 2480 of file stm8s.h.

#define CAN_FCR3_FSC50   ((uint8_t)0x20)

Definition at line 2481 of file stm8s.h.

#define CAN_FCR3_FSC51   ((uint8_t)0x40)

Definition at line 2482 of file stm8s.h.

#define CAN_FMR1_FMH0   ((uint8_t)0x02)

Definition at line 2450 of file stm8s.h.

#define CAN_FMR1_FMH1   ((uint8_t)0x08)

Definition at line 2452 of file stm8s.h.

#define CAN_FMR1_FMH2   ((uint8_t)0x20)

Definition at line 2454 of file stm8s.h.

#define CAN_FMR1_FMH3   ((uint8_t)0x80)

Definition at line 2456 of file stm8s.h.

#define CAN_FMR1_FML0   ((uint8_t)0x01)

Definition at line 2449 of file stm8s.h.

#define CAN_FMR1_FML1   ((uint8_t)0x04)

Definition at line 2451 of file stm8s.h.

#define CAN_FMR1_FML2   ((uint8_t)0x10)

Definition at line 2453 of file stm8s.h.

#define CAN_FMR1_FML3   ((uint8_t)0x40)

Definition at line 2455 of file stm8s.h.

#define CAN_FMR2_FMH4   ((uint8_t)0x02)

Definition at line 2459 of file stm8s.h.

#define CAN_FMR2_FMH5   ((uint8_t)0x08)

Definition at line 2461 of file stm8s.h.

#define CAN_FMR2_FML4   ((uint8_t)0x01)

Definition at line 2458 of file stm8s.h.

#define CAN_FMR2_FML5   ((uint8_t)0x04)

Definition at line 2460 of file stm8s.h.

#define CAN_IER_FFIE   ((uint8_t)0x04)

Definition at line 2377 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_IER_FMPIE   ((uint8_t)0x02)

Definition at line 2376 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_IER_FOVIE   ((uint8_t)0x08)

Definition at line 2378 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_IER_TMEIE   ((uint8_t)0x01)

Definition at line 2375 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_IER_WKUIE   ((uint8_t)0x80)

Definition at line 2379 of file stm8s.h.

Referenced by CAN_GetITStatus().

#define CAN_MCR_ABOM   ((uint8_t)0x40)

Definition at line 2341 of file stm8s.h.

#define CAN_MCR_AWUM   ((uint8_t)0x20)

Definition at line 2340 of file stm8s.h.

#define CAN_MCR_INRQ   ((uint8_t)0x01)

Definition at line 2335 of file stm8s.h.

Referenced by CAN_DeInit(), CAN_Init(), CAN_OperatingModeRequest(), and CAN_Sleep().

#define CAN_MCR_NART   ((uint8_t)0x10)

Definition at line 2339 of file stm8s.h.

#define CAN_MCR_RFLM   ((uint8_t)0x08)

Definition at line 2338 of file stm8s.h.

#define CAN_MCR_SLEEP   ((uint8_t)0x02)

Definition at line 2336 of file stm8s.h.

Referenced by CAN_OperatingModeRequest(), CAN_Sleep(), and CAN_WakeUp().

#define CAN_MCR_TTCM   ((uint8_t)0x80)

Definition at line 2342 of file stm8s.h.

Referenced by CAN_TTComModeCmd().

#define CAN_MCR_TXFP   ((uint8_t)0x04)

Definition at line 2337 of file stm8s.h.

#define CAN_MCSR_ABRQ   ((uint8_t)0x02)

Definition at line 2397 of file stm8s.h.

Referenced by CAN_CancelTransmit().

#define CAN_MCSR_ALST   ((uint8_t)0x10)

Definition at line 2400 of file stm8s.h.

#define CAN_MCSR_RQCP   ((uint8_t)0x04)

Definition at line 2398 of file stm8s.h.

#define CAN_MCSR_TERR   ((uint8_t)0x20)

Definition at line 2401 of file stm8s.h.

#define CAN_MCSR_TXOK   ((uint8_t)0x08)

Definition at line 2399 of file stm8s.h.

#define CAN_MCSR_TXRQ   ((uint8_t)0x01)

Definition at line 2396 of file stm8s.h.

Referenced by CAN_Transmit().

#define CAN_MDLCR_DLC   ((uint8_t)0x0F)

Definition at line 2403 of file stm8s.h.

#define CAN_MDLCR_TGT   ((uint8_t)0x80)

Definition at line 2404 of file stm8s.h.

Referenced by CAN_TTComModeCmd().

#define CAN_MIDR1_IDE   ((uint8_t)0x40)

Definition at line 2407 of file stm8s.h.

#define CAN_MIDR1_RTR   ((uint8_t)0x20)

Definition at line 2406 of file stm8s.h.

#define CAN_MSR_ERRI   ((uint8_t)0x04)

Definition at line 2347 of file stm8s.h.

Referenced by CAN_ClearITPendingBit().

#define CAN_MSR_INAK   ((uint8_t)0x01)

Definition at line 2345 of file stm8s.h.

Referenced by CAN_Init(), CAN_OperatingModeRequest(), and CAN_Sleep().

#define CAN_MSR_RX   ((uint8_t)0x20)

Definition at line 2350 of file stm8s.h.

#define CAN_MSR_SLAK   ((uint8_t)0x02)

Definition at line 2346 of file stm8s.h.

Referenced by CAN_OperatingModeRequest(), CAN_Sleep(), and CAN_WakeUp().

#define CAN_MSR_TX   ((uint8_t)0x10)

Definition at line 2349 of file stm8s.h.

#define CAN_MSR_WKUI   ((uint8_t)0x08)

Definition at line 2348 of file stm8s.h.

Referenced by CAN_ClearITPendingBit(), and CAN_GetITStatus().

#define CAN_PSR_PS0   ((uint8_t)0x01)

Definition at line 2391 of file stm8s.h.

#define CAN_PSR_PS1   ((uint8_t)0x02)

Definition at line 2392 of file stm8s.h.

#define CAN_PSR_PS2   ((uint8_t)0x04)

Definition at line 2393 of file stm8s.h.

#define CAN_RECR_REC0   ((uint8_t)0x01)

Definition at line 2439 of file stm8s.h.

#define CAN_RECR_REC1   ((uint8_t)0x02)

Definition at line 2440 of file stm8s.h.

#define CAN_RECR_REC2   ((uint8_t)0x04)

Definition at line 2441 of file stm8s.h.

#define CAN_RECR_REC3   ((uint8_t)0x08)

Definition at line 2442 of file stm8s.h.

#define CAN_RECR_REC4   ((uint8_t)0x10)

Definition at line 2443 of file stm8s.h.

#define CAN_RECR_REC5   ((uint8_t)0x20)

Definition at line 2444 of file stm8s.h.

#define CAN_RECR_REC6   ((uint8_t)0x40)

Definition at line 2445 of file stm8s.h.

#define CAN_RECR_REC7   ((uint8_t)0x80)

Definition at line 2446 of file stm8s.h.

#define CAN_RFR_FMP01   ((uint8_t)0x03)

Definition at line 2369 of file stm8s.h.

Referenced by CAN_GetITStatus(), and CAN_MessagePending().

#define CAN_RFR_FOVR   ((uint8_t)0x10)

Definition at line 2371 of file stm8s.h.

Referenced by CAN_ClearITPendingBit(), and CAN_GetITStatus().

#define CAN_RFR_FULL   ((uint8_t)0x08)

Definition at line 2370 of file stm8s.h.

Referenced by CAN_ClearITPendingBit(), and CAN_GetITStatus().

#define CAN_RFR_RFOM   ((uint8_t)0x20)

Definition at line 2372 of file stm8s.h.

Referenced by CAN_FIFORelease().

#define CAN_TECR_TEC0   ((uint8_t)0x01)

Definition at line 2429 of file stm8s.h.

#define CAN_TECR_TEC1   ((uint8_t)0x02)

Definition at line 2430 of file stm8s.h.

#define CAN_TECR_TEC2   ((uint8_t)0x04)

Definition at line 2431 of file stm8s.h.

#define CAN_TECR_TEC3   ((uint8_t)0x08)

Definition at line 2432 of file stm8s.h.

#define CAN_TECR_TEC4   ((uint8_t)0x10)

Definition at line 2433 of file stm8s.h.

#define CAN_TECR_TEC5   ((uint8_t)0x20)

Definition at line 2434 of file stm8s.h.

#define CAN_TECR_TEC6   ((uint8_t)0x40)

Definition at line 2435 of file stm8s.h.

#define CAN_TECR_TEC7   ((uint8_t)0x80)

Definition at line 2436 of file stm8s.h.

#define CAN_TPR_CODE0   ((uint8_t)0x01)

Definition at line 2361 of file stm8s.h.

#define CAN_TPR_LOW0   ((uint8_t)0x20)

Definition at line 2365 of file stm8s.h.

#define CAN_TPR_LOW1   ((uint8_t)0x40)

Definition at line 2366 of file stm8s.h.

#define CAN_TPR_LOW2   ((uint8_t)0x80)

Definition at line 2367 of file stm8s.h.

#define CAN_TPR_TME0   ((uint8_t)0x04)

Definition at line 2362 of file stm8s.h.

Referenced by CAN_Transmit(), and CAN_TransmitStatus().

#define CAN_TPR_TME1   ((uint8_t)0x08)

Definition at line 2363 of file stm8s.h.

Referenced by CAN_Transmit(), and CAN_TransmitStatus().

#define CAN_TPR_TME2   ((uint8_t)0x10)

Definition at line 2364 of file stm8s.h.

Referenced by CAN_Transmit(), and CAN_TransmitStatus().

#define CAN_TSR_RQCP0   ((uint8_t)0x01)

Definition at line 2353 of file stm8s.h.

Referenced by CAN_TransmitStatus().

#define CAN_TSR_RQCP012   ((uint8_t)0x07)

Definition at line 2356 of file stm8s.h.

Referenced by CAN_ClearITPendingBit(), and CAN_GetITStatus().

#define CAN_TSR_RQCP1   ((uint8_t)0x02)

Definition at line 2354 of file stm8s.h.

Referenced by CAN_TransmitStatus().

#define CAN_TSR_RQCP2   ((uint8_t)0x04)

Definition at line 2355 of file stm8s.h.

Referenced by CAN_TransmitStatus().

#define CAN_TSR_TXOK0   ((uint8_t)0x10)

Definition at line 2357 of file stm8s.h.

Referenced by CAN_TransmitStatus().

#define CAN_TSR_TXOK1   ((uint8_t)0x20)

Definition at line 2358 of file stm8s.h.

Referenced by CAN_TransmitStatus().

#define CAN_TSR_TXOK2   ((uint8_t)0x40)

Definition at line 2359 of file stm8s.h.

Referenced by CAN_TransmitStatus().

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com