Guardant Mobile SDK.
#include <stddef.h> #include "c99/stdint.h"
Include dependency graph for grdMobileSDK.h:
Classes
- struct GrdVendorInfo
- Description of fields that can be overwritten. struct GrdFindInfo
- Description of fields that can be use in the search dongle. struct GrdDongleInfo
Description of the expanded dongle information. Defines
#define GRD_API
#define GrdGetVendorInfo(findInfo) ((GrdVendorInfo*)&(((GrdFindInfo *)findInfo)->serialNumber))
Typedefs
- typedef GrdFindInfo GrdFindMode
- typedef uint32_t GrdHandle
Handle that may be obtained by grdOpen function. - typedef uint32_t GrdFindHandle
Search handle that may be obtained by grdFindFirst function.
Functions
- GrdHandle grdOpen (uint32_t publicCode, uint32_t readCode, uint32_t writeCode)
- GrdHandle grdOpenByFindMode (uint32_t findFlags, const GrdFindMode *findMode, size_t findModeSize, uint32_t readCode, uint32_t writeCode)
- uint32_t grdCodeRun (GrdHandle handle, uint16_t algorithmName, uint32_t p1, const void *inBuffer, size_t inBufferSize, void *outBuffer, size_t outBufferSize, uint32_t *codeRet)
- uint32_t grdCodeLoadFile (GrdHandle handle, uint16_t algorithmName, const char *filePath)
- uint32_t grdCodeLoad (GrdHandle handle, uint16_t algorithmName, const void *buffer, size_t bufferSize)
- uint32_t grdGetDongleInfo (GrdHandle handle, GrdDongleInfo *dongleInfo, size_t dongleInfoSize)
- uint32_t grdGetFindInfo (GrdHandle handle, GrdFindInfo *findInfo, size_t findInfoSize)
- uint32_t grdUpdateVendorInfo (GrdHandle handle, const GrdVendorInfo *vendorInfo, size_t vendorInfoSize)
- uint32_t grdClose (GrdHandle handle)
- GrdFindHandle grdFindFirst (uint32_t findFlags, const GrdFindMode *findMode, size_t findModeSize, GrdFindInfo *findInfo, size_t findInfoSize)
- uint32_t grdFindNext (GrdFindHandle handle, GrdFindInfo *findInfo, size_t findInfoSize)
- uint32_t grdFindClose (GrdFindHandle handle)
- uint32_t grdGetAPIVersionNumber ()
Variables
- static const uint32_t GrdFM_NProg = 0x00000001
In order to compare the field program number with the value in the dongle, as equal, this bit must be set. - static const uint32_t GrdFM_ID = 0x00000002
To search dongle with specified ID, this bit must be set. - static const uint32_t GrdFM_SN = 0x00000004
In order to compare the field serial number with the value in the dongle, as equal, this bit must be set. - static const uint32_t GrdFM_Ver = 0x00000008
In order to compare the field program version with the value in the dongle, as less or equal, this bit must be set. - static const uint32_t GrdFM_Mask = 0x00000010
In order to compare the field mask with the value in the dongle, as bit mask, this bit must be set. - static const uint32_t GrdFM_Type = 0x00000020
To search for a specified feature this bit must be set. - static const uint32_t GrdFM_Model = 0x80000000
To search for a model this bit must be set. - static const uint16_t GrdDT_RTC = 0x00000040
To search dongles that support "Real Time Clock" feature. - static const uint16_t GrdDT_LoadableCode = 0x00000400
To search dongles that support "Loadable Code" feature. - static const uint32_t GrdFMM_GC = 0x00000100
To search for a Guardant Code model this bit must be set. - static const uint32_t GrdFMM_GSD = 0x00000400
To search for a Guardant JavaCard model this bit must be set. - static const uint32_t GrdInvalidHandle = 0xFFFFFFFF
Invalid handle value.
Detailed Description
Guardant Mobile SDK.
This module contains the function prototypes and constant, type and structure definitions for the Guardant Mobile SDK.