Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

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

Classes

struct  spictrlregs
 

Macros

#define SPIC_CAP_OFF   0x00
 
#define SPIC_MODE_OFF   0x20
 
#define SPIC_SSSZ   24
 
#define SPIC_TWEN   (1 << 19)
 
#define SPIC_AMODE   (1 << 18)
 
#define SPIC_ASELA   (1 << 17)
 
#define SPIC_SSEN   (1 << 16)
 
#define SPIC_FDEPTH   8
 
#define SPIC_REVI   0
 
#define SPIC_AMEN   (1 << 31)
 
#define SPIC_LOOP   (1 << 30)
 
#define SPIC_CPOL   (1 << 29)
 
#define SPIC_CPHA   (1 << 28)
 
#define SPIC_DIV16   (1 << 27)
 
#define SPIC_REV   (1 << 26)
 
#define SPIC_MS   (1 << 25)
 
#define SPIC_EN   (1 << 24)
 
#define SPIC_LEN   20
 
#define SPIC_PM   16
 
#define SPIC_TW   (1 << 15)
 
#define SPIC_ASEL   (1 << 14)
 
#define SPIC_FACT   (1 << 13)
 
#define SPIC_OD   (1 << 12)
 
#define SPIC_CG   7
 
#define SPIC_ASDEL   5
 
#define SPIC_LT   (1 << 14)
 
#define SPIC_OV   (1 << 12)
 
#define SPIC_UN   (1 << 11)
 
#define SPIC_MME   (1 << 10)
 
#define SPIC_NE   (1 << 9)
 
#define SPIC_NF   (1 << 8)
 
#define SPIC_LST   (1 << 22)
 
#define SPIC_SEQ   (1 << 5)
 
#define SPIC_STRICT   (1 << 4)
 
#define SPIC_OVTB   (1 << 3)
 
#define SPIC_OVDB   (1 << 2)
 
#define SPIC_ACT   (1 << 1)
 
#define SPIC_EACT   (1 << 0)
 
#define MODE_RESVAL   0
 
#define EVENT_RESVAL   0
 
#define MASK_RESVAL   0
 
#define CMD_RESVAL   0
 
#define TD_RESVAL   0
 

Functions

int spictrl_test (int addr)
 

Macro Definition Documentation

#define CMD_RESVAL   0

Referenced by spictrl_test().

#define EVENT_RESVAL   0

Referenced by spictrl_test().

#define MASK_RESVAL   0

Referenced by spictrl_test().

#define MODE_RESVAL   0

Referenced by spictrl_test().

#define SPIC_ACT   (1 << 1)

Referenced by spictrl_test().

#define SPIC_AMEN   (1 << 31)

Referenced by spictrl_test().

#define SPIC_AMODE   (1 << 18)

Referenced by spictrl_test().

#define SPIC_ASDEL   5
#define SPIC_ASEL   (1 << 14)
#define SPIC_ASELA   (1 << 17)
#define SPIC_CAP_OFF   0x00
#define SPIC_CG   7
#define SPIC_CPHA   (1 << 28)
#define SPIC_CPOL   (1 << 29)
#define SPIC_DIV16   (1 << 27)
#define SPIC_EACT   (1 << 0)
#define SPIC_EN   (1 << 24)

Referenced by spictrl_test().

#define SPIC_FACT   (1 << 13)

Referenced by spictrl_test().

#define SPIC_FDEPTH   8

Referenced by spictrl_test().

#define SPIC_LEN   20
#define SPIC_LOOP   (1 << 30)

Referenced by spictrl_test().

#define SPIC_LST   (1 << 22)

Referenced by spictrl_test().

#define SPIC_LT   (1 << 14)

Referenced by spictrl_test().

#define SPIC_MME   (1 << 10)

Referenced by spictrl_test().

#define SPIC_MODE_OFF   0x20

Referenced by spictrl_test().

#define SPIC_MS   (1 << 25)

Referenced by spictrl_test().

#define SPIC_NE   (1 << 9)

Referenced by spictrl_test().

#define SPIC_NF   (1 << 8)

Referenced by spictrl_test().

#define SPIC_OD   (1 << 12)
#define SPIC_OV   (1 << 12)

Referenced by spictrl_test().

#define SPIC_OVDB   (1 << 2)
#define SPIC_OVTB   (1 << 3)
#define SPIC_PM   16
#define SPIC_REV   (1 << 26)
#define SPIC_REVI   0
#define SPIC_SEQ   (1 << 5)
#define SPIC_SSEN   (1 << 16)
#define SPIC_SSSZ   24
#define SPIC_STRICT   (1 << 4)
#define SPIC_TW   (1 << 15)
#define SPIC_TWEN   (1 << 19)
#define SPIC_UN   (1 << 11)

Referenced by spictrl_test().

#define TD_RESVAL   0

Referenced by spictrl_test().

Function Documentation

int spictrl_test ( int  addr)