UartBus source documentation
UbBootloaderFunctions.java
1 package eu.javaexperience.electronic.uartbus.rpc.client.device.fns.ubb;
2 
6 import eu.javaexperience.struct.GenericStruct1;
7 import eu.javaexperience.struct.GenericStruct2;
8 
9 public interface UbBootloaderFunctions extends UbDeviceNs
10 {
11  public static enum UbBootloaderVariable
12  {
13  IS_APPLICATION_RUNNING,
14  IS_SIGNALING_SOS,
15  RESET_FLAG,
16  }
17 
18 
19  @UbIndex(ns=0)
20  public UbbPowerFunctions getPowerFunctions();
21 
22  @UbIndex(ns=1)
24  public byte getVar(UbBootloaderVariable var);
25 
26  @UbIndex(ns=2)
27  public void setVar(UbBootloaderVariable var, byte value);
28 
29  @UbIndex(ns=3)
31  public GenericStruct2<Short, byte[]> readProgramCode(short address, byte length);
32 
33  @UbIndex(ns=4)
34  public UbbFlashFunctions getFlashFunctions();
35 }