|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pcmciainterface.Pcmcia
Title: PCMCIA I/O Utilities
Description: PCMCIA driver interface
Copyright: Copyright (c) 2005
Company: Mobile Satellite Services Corporation
Constructor Summary | |
Pcmcia()
|
Method Summary | |
(package private) static void |
|
void |
disposeHandle()
Disposes a handle to the driver. |
void |
getHandle()
Gets handle to the driver. |
int |
readIoFixAddr8bit(int address,
int noOfBytesToRead,
byte[] bufferForReadValues)
Reads 8-bit words from I/O space at a fixed address. |
int |
readMemoryFixAddr16bit(int address,
int noOfBytesToRead,
byte[] bufferForReadValues)
Reads 16-bit words from common memory space at a fixed address. |
int |
writeIoFixAddr8bit(int address,
int noOfBytesToWrite,
byte[] bufferWithValuesToWrite)
Writes 8-bit words to I/O space at a fixed address. |
int |
writeMemFixAddr16bit(int address,
int noOfBytesToWrite,
byte[] bufferWithValuesToWrite)
Writes 16-bit words to common memory space at a fixed address. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Pcmcia()
Method Detail |
static void()
public void getHandle() throws GetHandleException
GetHandleException
- if there was a problempublic void disposeHandle()
public int readMemoryFixAddr16bit(int address, int noOfBytesToRead, byte[] bufferForReadValues) throws NoHandleException, BadParameterException, UnknownPcmciaErrorException
address
- the address at which the access to the hardware
will take place at. The address
must be in the
asssigned common memory space. Must be an even number.noOfBytesToRead
- the number of bytes to read. Must be an even
number.bufferForReadValues
- a buffer for the read data.
The size of the buffer in bytes must be equal to or greater than
noOfBytesToRead
.BadParameterException
- if one or several parameter have invalid
values.NoHandleException
- if there is currently no handle established
with the driver.UnknownPcmciaErrorException
- if an unknown error occurred.public int readIoFixAddr8bit(int address, int noOfBytesToRead, byte[] bufferForReadValues) throws NoHandleException, BadParameterException, UnknownPcmciaErrorException
address
- the address at which the access to the hardware
will take place at. The address
must be in the
asssigned I/O space.noOfBytesToRead
- the number of bytes to read.bufferForReadValues
- a buffer for the read data.
The size of the buffer in bytes must be equal to or greater than
noOfBytesToRead
.BadParameterException
- if one or several parameter have invalid
values.NoHandleException
- if there is currently no handle established
with the driver.UnknownPcmciaErrorException
- if an unknown error occurred.public int writeMemFixAddr16bit(int address, int noOfBytesToWrite, byte[] bufferWithValuesToWrite) throws NoHandleException, BadParameterException, UnknownPcmciaErrorException
address
- the address at which the first access to the hardware
will take place at. The address
must be in the
asssigned common memory space. Must be an even number.noOfBytesToWrite
- the number of bytes to write. Must be
an even number.bufferWithValuesToWrite
- a buffer containing the data to be stored
in the hardware. The size of the buffer in bytes must be equal to or greater than
noOfBytesToWrite
.BadParameterException
- if one or several parameter have invalid
values.NoHandleException
- if there is currently no handle established
with the driver.UnknownPcmciaErrorException
- if an unknown error occurred.public int writeIoFixAddr8bit(int address, int noOfBytesToWrite, byte[] bufferWithValuesToWrite) throws NoHandleException, BadParameterException, UnknownPcmciaErrorException
address
- the address at which the access to the hardware
will take place at. The address
must be in the
asssigned I/O space.noOfBytesToWrite
- the number of bytes to write.bufferWithValuesToWrite
- a buffer containing the data to be stored
in the hardware. The size of the buffer in bytes must be equal to or greater than
noOfBytesToWrite
.BadParameterException
- if one or several parameter have invalid
values.NoHandleException
- if there is currently no handle established
with the driver.UnknownPcmciaErrorException
- if an unknown error occurred.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |