Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

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

Classes

struct  apbps2_regs
 

Macros

#define APBPS2_S_RCNT_P   27 /* Receive FIFO count */
 
#define APBPS2_S_TCNT_P   22 /* Transmit FIFO count */
 
#define APBPS2_S_TF   (1 << 5) /* Transmitter buffer full */
 
#define APBPS2_S_RF   (1 << 4) /* Receiver buffer full */
 
#define APBPS2_S_KI   (1 << 3) /* Keyboard inhibit */
 
#define APBPS2_S_FE   (1 << 2) /* Framing error */
 
#define APBPS2_S_PE   (1 << 1) /* Party error */
 
#define APBPS2_S_DR   (1 << 0) /* Data ready */
 
#define APBPS2_C_TI   (1 << 3) /* Host interrupt enable */
 
#define APBPS2_C_RI   (1 << 2) /* Keyboard interrupt enable */
 
#define APBPS2_C_TE   (1 << 1) /* Transmitter enable */
 
#define APBPS2_C_RE   (1 << 0) /* Receiver enable */
 

Functions

int apbps2_test (int addr)
 

Macro Definition Documentation

#define APBPS2_C_RE   (1 << 0) /* Receiver enable */

Referenced by apbps2_test().

#define APBPS2_C_RI   (1 << 2) /* Keyboard interrupt enable */
#define APBPS2_C_TE   (1 << 1) /* Transmitter enable */

Referenced by apbps2_test().

#define APBPS2_C_TI   (1 << 3) /* Host interrupt enable */
#define APBPS2_S_DR   (1 << 0) /* Data ready */

Referenced by apbps2_test().

#define APBPS2_S_FE   (1 << 2) /* Framing error */

Referenced by apbps2_test().

#define APBPS2_S_KI   (1 << 3) /* Keyboard inhibit */

Referenced by apbps2_test().

#define APBPS2_S_PE   (1 << 1) /* Party error */

Referenced by apbps2_test().

#define APBPS2_S_RCNT_P   27 /* Receive FIFO count */

Register fields

Referenced by apbps2_test().

#define APBPS2_S_RF   (1 << 4) /* Receiver buffer full */

Referenced by apbps2_test().

#define APBPS2_S_TCNT_P   22 /* Transmit FIFO count */

Referenced by apbps2_test().

#define APBPS2_S_TF   (1 << 5) /* Transmitter buffer full */

Referenced by apbps2_test().

Function Documentation

int apbps2_test ( int  addr)

References APBPS2_C_RE, APBPS2_C_TE, APBPS2_S_DR, APBPS2_S_FE, APBPS2_S_KI, APBPS2_S_PE, APBPS2_S_RCNT_P, APBPS2_S_RF, APBPS2_S_TCNT_P, APBPS2_S_TF, apbps2_regs::control, apbps2_regs::data, fail, i, apbps2_regs::reload, report_device(), report_subtest(), and apbps2_regs::status.

Here is the call graph for this function: