CMSIS-Driver Validation
Driver Validation
|
#include "cmsis_dv.h"
#include "DV_CAN_Config.h"
#include "DV_Framework.h"
#include "Driver_CAN.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Macros | |
#define | CAN_MSG_SIZE 8U |
#define | CAN_MSG_SIZE_FD 64U |
#define | CAN_EXT_FRAME_BITS ( 1 +11 +1 +1 +18 +1 +1 +1 +4 +21 +1 +2 +7 ) |
#define | CAN_EXT_FRAME_BITS_NOMINAL ( 1 +11 +1 +1 +18 +1 +1 +1 +1 +2 +7 ) |
#define | CAN_EXT_FRAME_BITS_FD_DATA ( +1 +4 +21 +1 ) |
Functions | |
ARM_DRIVER_CAN | CREATE_SYMBOL (Driver_CAN, DRV_CAN) |
void | CAN_SignalUnitEvent (uint32_t event) |
void | CAN_SignalObjectEvent (uint32_t obj_idx, uint32_t event) |
int8_t | CAN_RunTransfer (uint32_t tx_obj_idx, ARM_CAN_MSG_INFO *tx_msg_info, const uint8_t *tx_data, uint32_t rx_obj_idx, ARM_CAN_MSG_INFO *rx_msg_info, uint8_t *rx_data, uint8_t size) |
void | CAN_GetCapabilities (void) |
Function: CAN_GetCapabilities. More... | |
void | CAN_Initialization (void) |
Function: CAN_Initialization. More... | |
void | CAN_CheckInvalidInit (void) |
Function: CAN_CheckInvalidInit. More... | |
void | CAN_PowerControl (void) |
Function: CAN_PowerControl. More... | |
void | CAN_Loopback_CheckBitrate (void) |
Function: CAN_Loopback_CheckBitrate. More... | |
void | CAN_Loopback_CheckBitrateFD (void) |
Function: CAN_Loopback_CheckBitrateFD. More... | |
void | CAN_Loopback_Transfer (void) |
Function: CAN_Loopback_Transfer. More... | |
void | CAN_Loopback_TransferFD (void) |
Function: CAN_Loopback_TransferFD. More... | |
Variables | |
static uint8_t * | buffer_out |
static uint8_t * | buffer_in |
const uint32_t | CAN_BR [] |
const uint32_t | CAN_BR_NUM = ARRAY_SIZE(CAN_BR) |
static ARM_DRIVER_CAN * | drv = &CREATE_SYMBOL(Driver_CAN, DRV_CAN) |
static ARM_CAN_CAPABILITIES | capab |
static ARM_CAN_OBJ_CAPABILITIES | obj_capab |
static char | str [128] |
static uint32_t volatile | Event |
uint32_t | Obj_idx |
#define CAN_MSG_SIZE 8U |
#define CAN_MSG_SIZE_FD 64U |
#define CAN_EXT_FRAME_BITS ( 1 +11 +1 +1 +18 +1 +1 +1 +4 +21 +1 +2 +7 ) |
#define CAN_EXT_FRAME_BITS_NOMINAL ( 1 +11 +1 +1 +18 +1 +1 +1 +1 +2 +7 ) |
#define CAN_EXT_FRAME_BITS_FD_DATA ( +1 +4 +21 +1 ) |
ARM_DRIVER_CAN CREATE_SYMBOL | ( | Driver_CAN | , |
DRV_CAN | |||
) |
void CAN_SignalUnitEvent | ( | uint32_t | event | ) |
void CAN_SignalObjectEvent | ( | uint32_t | obj_idx, |
uint32_t | event | ||
) |
int8_t CAN_RunTransfer | ( | uint32_t | tx_obj_idx, |
ARM_CAN_MSG_INFO * | tx_msg_info, | ||
const uint8_t * | tx_data, | ||
uint32_t | rx_obj_idx, | ||
ARM_CAN_MSG_INFO * | rx_msg_info, | ||
uint8_t * | rx_data, | ||
uint8_t | size | ||
) |
|
static |
|
static |
const uint32_t CAN_BR[] |
const uint32_t CAN_BR_NUM = ARRAY_SIZE(CAN_BR) |
|
static |
|
static |
|
static |
|
static |
|
static |
uint32_t Obj_idx |