BowlerKernel
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.bootloader.NRBoot Class Reference
Collaboration diagram for com.neuronrobotics.sdk.bootloader.NRBoot:
Collaboration graph
[legend]

Classes

class  CoreLoader
 

Public Member Functions

 NRBoot (BowlerAbstractDevice pm)
 
 NRBoot (String serialPort)
 
boolean load (Core core)
 
void reset ()
 
NRBootLoader getDevice ()
 
void loadCores (ArrayList< Core > cores)
 
boolean isLoadDone ()
 
int getProgressMax ()
 
int getProgressValue ()
 

Private Member Functions

IntelHexParser getParser (Core core)
 
void send (IntelHexParser parse, int core)
 

Private Attributes

NRBootLoader boot
 
CoreLoader loader
 
int progressMax =0
 
int progressValue =0
 

Detailed Description

The Class NRBoot.

Definition at line 17 of file NRBoot.java.

Constructor & Destructor Documentation

◆ NRBoot() [1/2]

com.neuronrobotics.sdk.bootloader.NRBoot.NRBoot ( BowlerAbstractDevice  pm)

Instantiates a new NR boot.

Parameters
pmthe pm

Definition at line 36 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.boot.

◆ NRBoot() [2/2]

com.neuronrobotics.sdk.bootloader.NRBoot.NRBoot ( String  serialPort)

Instantiates a new NR boot.

Parameters
serialPortthe serial port

Definition at line 53 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.boot, com.neuronrobotics.sdk.bootloader.NRBootLoader.connect(), com.neuronrobotics.sdk.common.BowlerAbstractDevice.disconnect(), and com.neuronrobotics.sdk.common.BowlerAbstractDevice.ping().

Here is the call graph for this function:

Member Function Documentation

◆ getDevice()

NRBootLoader com.neuronrobotics.sdk.bootloader.NRBoot.getDevice ( )

Gets the device.

Returns
the device

Definition at line 151 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.boot.

Referenced by com.neuronrobotics.sdk.bootloader.NRBoot.load().

◆ getParser()

IntelHexParser com.neuronrobotics.sdk.bootloader.NRBoot.getParser ( Core  core)
private

Gets the parser.

Parameters
corethe core
Returns
the parser

Definition at line 97 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.Core.getLines(), and com.neuronrobotics.sdk.bootloader.Core.getType().

Referenced by com.neuronrobotics.sdk.bootloader.NRBoot.CoreLoader.CoreLoader(), and com.neuronrobotics.sdk.bootloader.NRBoot.load().

Here is the call graph for this function:

◆ getProgressMax()

int com.neuronrobotics.sdk.bootloader.NRBoot.getProgressMax ( )

Gets the progress max.

Returns
the progress max

Definition at line 227 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.progressMax.

◆ getProgressValue()

int com.neuronrobotics.sdk.bootloader.NRBoot.getProgressValue ( )

Gets the progress value.

Returns
the progress value

Definition at line 237 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.progressValue.

◆ isLoadDone()

boolean com.neuronrobotics.sdk.bootloader.NRBoot.isLoadDone ( )

Checks if is load done.

Returns
true, if is load done

Definition at line 170 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.CoreLoader.isDone, and com.neuronrobotics.sdk.bootloader.NRBoot.loader.

◆ load()

boolean com.neuronrobotics.sdk.bootloader.NRBoot.load ( Core  core)

◆ loadCores()

void com.neuronrobotics.sdk.bootloader.NRBoot.loadCores ( ArrayList< Core cores)

Load cores.

Parameters
coresthe cores

Definition at line 160 of file NRBoot.java.

References com.neuronrobotics.sdk.bootloader.NRBoot.loader.

◆ reset()

void com.neuronrobotics.sdk.bootloader.NRBoot.reset ( )

◆ send()

void com.neuronrobotics.sdk.bootloader.NRBoot.send ( IntelHexParser  parse,
int  core 
)
private

Member Data Documentation

◆ boot

NRBootLoader com.neuronrobotics.sdk.bootloader.NRBoot.boot
private

◆ loader

CoreLoader com.neuronrobotics.sdk.bootloader.NRBoot.loader
private

◆ progressMax

int com.neuronrobotics.sdk.bootloader.NRBoot.progressMax =0
private

◆ progressValue

int com.neuronrobotics.sdk.bootloader.NRBoot.progressValue =0
private

The documentation for this class was generated from the following file: