public static bool GetStatus() { uint status; int rtn = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_STATUS, 0, 0, out status); return(status != 0); }
public static int GetSerialNum(out uint sn) { int val = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_SERIAL_NUM, 0, 0, out sn); sn = SwapBytes(sn); return(val); }
public static int GetPASN(out uint sn) { int val = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_PA_SN, 0, 0, out sn); sn = SwapBytes(sn); return(val); }
public static int GetPARev(out uint rev) { int val = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_PA_REV, 0, 0, out rev); rev = SwapBytes(rev); return(val); }
public static int ReadGPIO(out byte data) { uint x; int val = USBHIDAPI.ReadOp(Opcode.USB_OP_READ_GPIO, 0, 0, out x); data = (byte)x; return(val); }
public static int GetRegion(out FRSRegion region) { uint data; int rtn = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_REGION, 0, 0, out data); if ((FRSRegion)data >= FRSRegion.LAST) { region = 0; return(rtn); } region = (FRSRegion)data; return(rtn); }
public static int ReadPTT(out uint val) { return(USBHIDAPI.ReadOp(Opcode.USB_OP_READ_PTT, 0, 0, out val)); }
public static int GetFirmwareRev(out uint rev) { int val = USBHIDAPI.ReadOp(Opcode.USB_OP_GET_FIRMWARE_REV, 0, 0, out rev); return(val); }