![]() |
CMSIS-Driver Validation
Version 1.3.0
Driver Validation
|
#include "cmsis_dv.h"
#include "DV_Config.h"
#include "DV_Framework.h"
#include "Driver_SPI.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Typedefs | |
typedef uint8_t | buf_t |
Functions | |
ARM_DRIVER_SPI | CREATE_SYMBOL (Driver_SPI, DRV_SPI) |
static void | SPI_DrvEvent (uint32_t event) |
int8_t | SPI_RunTransfer (void *out, void *in, uint32_t cnt) |
int8_t | SPI_RunSend (void *out, uint32_t cnt) |
int8_t | SPI_RunSend_NoCallback (void *out, uint32_t cnt) |
int8_t | SPI_RunReceive (void *in, uint32_t cnt) |
int8_t | SPI_RunReceiveNoCallback (void *in, uint32_t cnt) |
void | SPI_GetCapabilities (void) |
Test case: SPI_GetCapabilities. More... | |
void | SPI_Initialization (void) |
Test case: SPI_Initialization. More... | |
void | SPI_CheckInvalidInit (void) |
Test case: SPI_CheckInvalidInit. More... | |
void | SPI_PowerControl (void) |
Test case: SPI_PowerControl. More... | |
void | SPI_Config_PolarityPhase (void) |
Test case: SPI_Config_PolarityPhase. More... | |
void | SPI_Config_DataBits (void) |
Test case: SPI_Config_DataBits. More... | |
void | SPI_Config_BitOrder (void) |
Test case: SPI_Config_BitOrder. More... | |
void | SPI_Config_SSMode (void) |
Test case: SPI_Config_SSMode. More... | |
void | SPI_Config_CommonParams (void) |
Test case: SPI_Config_CommonParams. More... | |
void | SPI_Config_BusSpeed (void) |
Test case: SPI_Config_BusSpeed. More... | |
void | SPI_Send (void) |
Test case: SPI_Send. More... | |
void | SPI_Receive (void) |
Test case: SPI_Receive. More... | |
void | SPI_Loopback_CheckBusSpeed (void) |
Test case: SPI_Loopback_CheckBusSpeed. More... | |
void | SPI_Loopback_Transfer (void) |
Test case: SPI_Loopback_Transfer. More... | |
Variables | |
static buf_t * | buffer_out |
static buf_t * | buffer_in |
static const uint32_t | SPI_BR [] |
static const uint32_t | SPI_BR_NUM = ARRAY_SIZE(SPI_BR) |
static ARM_DRIVER_SPI * | drv = &CREATE_SYMBOL(Driver_SPI, DRV_SPI) |
static ARM_SPI_CAPABILITIES | capab |
static uint8_t volatile | Event |
typedef uint8_t buf_t |
ARM_DRIVER_SPI CREATE_SYMBOL | ( | Driver_SPI | , |
DRV_SPI | |||
) |
|
static |
int8_t SPI_RunReceive | ( | void * | in, |
uint32_t | cnt | ||
) |
int8_t SPI_RunReceiveNoCallback | ( | void * | in, |
uint32_t | cnt | ||
) |
int8_t SPI_RunSend | ( | void * | out, |
uint32_t | cnt | ||
) |
int8_t SPI_RunSend_NoCallback | ( | void * | out, |
uint32_t | cnt | ||
) |
int8_t SPI_RunTransfer | ( | void * | out, |
void * | in, | ||
uint32_t | cnt | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |