本文へスキップ

SDK API

The followings are a set of APIs that initialize device management information and that are used for dynamic memory control and PIN code generation.



Structure​

BS2EncryptKey​

enum
{
BS2_ENC_KEY_SIZE = 32,
};

typedef struct
{
uint8_t key[BS2_ENC_KEY_SIZE];
uint8_t reserved[32];
} BS2EncryptKey;
  1. key

    The key value used by the device.

  2. reserved

    Reserved space.

BS2LicenseBlob​

typedef struct {
BS2_LICENSE_TYPE licenseType;
uint16_t numOfDevices;
BS2_DEVICE_ID* deviceIDObjs;
uint32_t licenseLen;
uint8_t* licenseObj;
} BS2LicenseBlob;
  1. licenseType

    The type of license.

    ValueDescription
    0x0000None
    0x0001Visual QR
  2. numOfDevices

    Number of licenses activated devices.

  3. deviceIDObjs

    Slave devices for which license information will be issued.

  4. licenseLen

    license activation file size.

  5. licenseObj

    License activation data block.

BS2LicenseResult​

typedef struct {
BS2_DEVICE_ID deviceID;
BS2_LICENSE_STATUS status;
} BS2LicenseResult;
  1. deviceID

    Device identifier.

  2. status

    License status information.

    ValueDescription
    0Not supported
    1Disable
    2Enable
    3Expired
このページは役に立ちましたか?