Quatech 802.11B/G User Manual

Page 25

Advertising
background image

Airborne Enterprise Module Databook

Quatech, Inc.

100-8080-120

7/15/2010

25

Command

(Hex)

Name

Description

0x10

INTENA

The INTENA command will configure the specific interrupts to
be enabled from the module. For this command, the PARM1
field will define the interrupts to be enabled.

The definition of the PARM1 field for this command is a bit-mask
and is formatted as follows:
Bit 7

Interrupt Sense – Determines the asserted state of
the interrupt pin. If this bit is set to a 1, the interrupt

pin will be active high, otherwise the interrupt pin will

be active low. The module will use the setting of this
bit from the most recently issued INTENA command

to determine the Interrupt Sense.

Bit 1

TX Interrupt – If this bit is set to a 1, the interrupt

pin will be asserted when there is space available in
the TX buffer. The interrupt will be cleared when the

module has TX data to process from the host.
Alternately, the host can clear this interrupt by using

the TXINTCLR command if the host has no more data
to send.

Bit 0

RX Interrupt – If this bit is set to a 1, the interrupt
pin will be asserted when there is RX data available.

The interrupt will be cleared when the host has
received all the RX data available from the module.

All other bits of PARM1 are unused for this command
and should be set to zero.

PARM2 is unused for this command and should be set to zero.

For example, to enable TX interrupts with the interrupt pin
active high, use the SPI message 0x10 0x82 0x00 0x00. That

is, SPI command 0x10, PARM1 is 0x82, PARM2 is 0x0000.

Important: The INTENA command can only be used to enable

the specified interrupts. This command cannot be used to
disable specified interrupts by setting the corresponding

interrupt enable bits to zero in PARM1. The INTDIS command
must be used to disable the specified interrupts.

0x20

INTDIS

The INTDIS command will configure the specific interrupts to be
disabled from the module. For this command, the PARM1 field
will define the interrupts to be disabled.

The definition of the PARM1 field for this command is a bit-mask
and is formatted as follows:
Bit 1

TX Interrupt – If this bit is set to a 1, The TX

interrupt function will be disabled.

Bit 0

RX Interrupt – If this bit is set to a 1, the RX

interrupt function will be disabled.

All other bits of PARM1 are unused for this command

and should be set to zero.

PARM2 is unused for this command and should be set to zero.

For example, to disable TX interrupts, use the SPI message
0x20 0x02 0x00 0x00. That is, SPI command 0x20, PARM1 is

0x02, PARM2 is 0x0000.

Advertising