public final class AccesDio extends Iocard
| Modifier and Type | Field and Description |
|---|---|
static int |
CONF_REG
Various constants
|
static int |
ISA_N_REGS
Various constants
|
static int |
ISA_STATUS_AND_RESET_REG
Various constants
|
static int |
PCI_MIN_IO_ADDR
Various constants
|
static int |
PCI_N_REGS
Various constants
|
static int |
PCI_VENDOR_ID
Various constants
|
static int |
PORTA_REG
Various constants
|
static int |
PORTB_REG
Various constants
|
static int |
PORTC_REG
Various constants
|
static int |
RESET_REG
Various constants
|
static int |
SETUP_REG
Various constants
|
OPT_CHECK, OPT_READV, OPT_WRITER| Constructor and Description |
|---|
AccesDio() |
AccesDio(int base,
int irq)
Constructors
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachInt(int mask,
Object cbObj,
String cbMeth,
Object cbParm)
Enable interrupt handling.
|
void |
detachInt()
Disable interrupt handling
|
void |
dioClrBit(int port,
int bit)
Clear a bit in a DIO port
|
void |
dioConfig(int value)
Set DIO configuration
|
int |
dioInp(int port)
Read from a DIO port
|
int |
dioInpBit(int port,
int bit)
Read a bit from a DIO port
|
void |
dioOut(int port,
int value)
Write to a DIO port
|
void |
dioOutBit(int port,
int bit,
int value)
Write a bit to a DIO port
|
void |
dioSetBit(int port,
int bit)
Set a bit in a DIO port
|
int |
getBase() |
int |
getIrq()
Card properties
|
int |
getNregs() |
void |
init(int base,
int irq)
Initialize card
|
public static final int ISA_N_REGS
public static final int PCI_N_REGS
public static final int PORTA_REG
public static final int PORTB_REG
public static final int PORTC_REG
public static final int CONF_REG
public static final int SETUP_REG
public static final int RESET_REG
public static final int ISA_STATUS_AND_RESET_REG
public static final int PCI_VENDOR_ID
public static final int PCI_MIN_IO_ADDR
public AccesDio(int base,
int irq)
public AccesDio()
public void init(int base,
int irq)
public int getIrq()
public int getBase()
public int getNregs()
public void dioConfig(int value)
public int dioInp(int port)
public void dioOut(int port,
int value)
public int dioInpBit(int port,
int bit)
public void dioOutBit(int port,
int bit,
int value)
public void dioSetBit(int port,
int bit)
public void dioClrBit(int port,
int bit)
public void attachInt(int mask,
Object cbObj,
String cbMeth,
Object cbParm)
mask - Has a 1 bit for each desired source of interrupts.
Value 1 for port A, 2 for port B, 4 for port C.cbObj - The call-back object.cbMeth - The name of the method to call on cbObj when an interrupt occurs.cbParm - The argument to be given to cbObj.cbMeth()public void detachInt()
Copyright © 2016 LSST. All rights reserved.