com.rscja.deviceapi.interfaces

## Interface IPSAM

- All Known Implementing Classes:
    PSAM

      public interface IPSAM

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `executeCmd(java.lang.String hexCmd, java.lang.String hexData)` 执行PSAM命令 Execute PSAM command
    `boolean` | `free()` 释放PSAM Release PSAM
    `boolean` | `init()` 初始化PSAM Initialize PSAM
    `boolean` | `isPowerOn()`
    `boolean` | `Upgrade(int packageCount, int index, int currSize, byte[] data)` 固件升级 Firmware upgrade

- - ### Method Detail

    - #### init

          boolean init()

      初始化PSAM
      Initialize PSAM
      Returns:

    - #### free

          boolean free()

      释放PSAM
      Release PSAM
      Returns:

    - #### executeCmd

          java.lang.String executeCmd(java.lang.String hexCmd,
                                      java.lang.String hexData)

      执行PSAM命令
      Execute PSAM command
      Parameters:
        `hexCmd` - 十六进制命令code
        nexdecimal command code
        `hexData` - 十六进制命令内容
        hexdecimal command content
      Returns:
        command return value

    - #### Upgrade

          boolean Upgrade(int packageCount,
                          int index,
                          int currSize,
                          byte[] data)

      固件升级
      Firmware upgrade
      Parameters:
        `packageCount` - 包的数量
        package amount
        `index` - 当前为第几个包
        current package
        `currSize` - 当前包大小
        current package size
        `data` - 包数据
        package data
      Returns:
        true成功，false失败

    - #### isPowerOn

          boolean isPowerOn()