Class RN131
- java.lang.Object
-
- org.deepjava.runtime.arm32.Task
-
- org.deepjava.runtime.zynq7000.driver.RN131
-
- All Implemented Interfaces:
Iarm32
,Actionable
public class RN131 extends Task
Driver for Roving RN-131C WiFly Module.
Usage:
Connect the RN131WiFly module to a serial port of the Zynq7000 (UART1 or UART2).
The WiFly module can also be configured with a Terminal Program like PuTTY with a baud rate of 115200 kbps, no flow control. More information to the RN131WiFly can be found at microchip.com
The WiFly module has to be configured as follows:factory RESET
set uart baudrate 115200
set sys printlvl 0
set uart mode 0x21
savee
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RN131.State
-
Field Summary
Fields Modifier and Type Field Description boolean
connected
IntPacket
intPacket
ByteFifo
rx
ByteFifo
tx
-
Fields inherited from class org.deepjava.runtime.arm32.Task
done, firstErr, maxNofTasks, nextTime, nofActivations, period, periodNs, safe, time
-
Fields inherited from interface org.deepjava.runtime.arm32.Iarm32
ACTLR, CPACR, CPSR, D0, D1, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D2, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D3, D30, D31, D4, D5, D6, D7, D8, D9, FPSCR, ID_ISAR0, ID_ISAR1, ID_ISAR2, ID_ISAR3, LR, LR_ABT, LR_FIQ, LR_IRQ, LR_MON, LR_SVC, LR_UND, LR_USR, MIDR, MPIDR, MPUIR, PC, R0, R1, R10, R10_FIQ, R11, R11_FIQ, R12, R12_FIQ, R2, R3, R4, R5, R6, R7, R8, R8_FIQ, R9, R9_FIQ, S0, S1, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S2, S20, S21, S22, S23, S24, S25, S26, S27, S28, S29, S3, S30, S31, S4, S5, S6, S7, S8, S9, SCTLR, SP, SP_ABT, SP_FIQ, SP_IRQ, SP_MON, SP_SVC, SP_UND, SP_USR, SPSR_ABT, SPSR_FIQ, SPSR_IRQ, SPSR_MON, SPSR_SVC, SPSR_UND
-
-
Constructor Summary
Constructors Constructor Description RN131(UARTInputStream in, UARTOutputStream out, int resetChannel)
Creates a new RN131 object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action()
Do not call this method.RN131.State
getState()
Gets the internal state of the driver.void
reset()
Resets the internal state machine of the driver.
-
-
-
Constructor Detail
-
RN131
public RN131(UARTInputStream in, UARTOutputStream out, int resetChannel)
Creates a new RN131 object. It uses an UART together with a single pin of a flink gpio subdevice for resetting the device.- Parameters:
in
- UART Inputstreamout
- UART OutputstreamresetChannel
- Pin number of gpio channel for reset
-
-
Method Detail
-
getState
public RN131.State getState()
Gets the internal state of the driver.- Returns:
- current state of the driver
-
reset
public void reset()
Resets the internal state machine of the driver.
-
action
public void action()
Do not call this method.- Specified by:
action
in interfaceActionable
- Overrides:
action
in classTask
-
-