Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Classes | Macros | Functions
spimctrl.c File Reference
#include "testmod.h"
Include dependency graph for spimctrl.c:

Classes

struct  spimctrlregs
 

Macros

#define SPIM_CSN   (1 << 3)
 
#define SPIM_EAS   (1 << 2)
 
#define SPIM_IEN   (1 << 1)
 
#define SPIM_USRC   (1 << 0)
 
#define SPIM_TO   (1 << 4)
 
#define SPIM_ERR   (1 << 3)
 
#define SPIM_INIT   (1 << 2)
 
#define SPIM_BUSY   (1 << 1)
 
#define SPIM_DONE   (1 << 0)
 

Functions

int spimctrl_test (unsigned int addr)
 

Macro Definition Documentation

#define SPIM_BUSY   (1 << 1)

Referenced by spimctrl_test().

#define SPIM_CSN   (1 << 3)

Referenced by spimctrl_test().

#define SPIM_DONE   (1 << 0)

Referenced by spimctrl_test().

#define SPIM_EAS   (1 << 2)

Referenced by spimctrl_test().

#define SPIM_ERR   (1 << 3)

Referenced by spimctrl_test().

#define SPIM_IEN   (1 << 1)

Referenced by spimctrl_test().

#define SPIM_INIT   (1 << 2)

Referenced by spimctrl_test().

#define SPIM_TO   (1 << 4)

Referenced by spimctrl_test().

#define SPIM_USRC   (1 << 0)

Referenced by spimctrl_test().

Function Documentation

int spimctrl_test ( unsigned int  addr)

References spimctrlregs::ctrl, fail, report_device(), report_subtest(), spimctrlregs::rx, SPIM_BUSY, SPIM_CSN, SPIM_DONE, SPIM_EAS, SPIM_ERR, SPIM_IEN, SPIM_INIT, SPIM_TO, SPIM_USRC, spimctrlregs::stat, and spimctrlregs::tx.

Here is the call graph for this function: