VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
iq_apitypes.h File Reference

Header for IQ API - type definitions. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define IQ_MAX_DEVICE_PORTS   32
 
#define VISION_SIG_FLAG_STATUS   (1<<0)
 

Typedefs

typedef IQ_DeviceType IQ_DeviceTypeBuffer[IQ_MAX_DEVICE_PORTS]
 

Enumerations

enum  IQ_DeviceType {
  kDeviceTypeNoSensor = 0 , kDeviceTypeMotorSensor = 2 , kDeviceTypeLedSensor = 3 , kDeviceTypeRgbSensor = 4 ,
  kDeviceTypeBumperSensor = 5 , kDeviceTypeGyroSensor = 6 , kDeviceTypeSonarSensor = 7 , kDeviceTypeRadioSensor = 8 ,
  kDeviceTypeTetherSensor = 9 , kDeviceTypeVisionSensor = 11 , kDeviceTypeGenericSensor = 0x80 , kDeviceTypeUserSensor = 0xFF
}
 IQ Device type definitions
More...
 
enum  IQVisionMode { kVisionModeNormal = 0 , kVisionModeMixed = 1 , kVisionModeLineDetect = 2 , kVisionTypeTest = 3 }
 IQ Vision sensor definitions
More...
 
enum  IQVisionBlockType { kVisionTypeNormal = 0 , kVisionTypeColorCode = 1 , kVisionTypeLineDetect = 2 }
 
enum  IQVisionWBMode { kVisionWBNormal = 0 , kVisionWBStart = 1 , kVisionWBManual = 2 }
 
enum  IQVisionLedMode { kVisionLedModeAuto = 0 , kVisionLedModeManual = 1 }
 
enum  IQVisionWifiMode { kVisionWifiModeOff = 0 , kVisionWifiModeOn = 1 }
 

Functions

struct __attribute ((packed)) _IQ_DeviceVisionObject
 
struct __attribute__ ((__packed__))
 

Variables

 IQ_DeviceVisionObject
 
 IQ_DeviceVisionRgb
 
 IQ_VisionDetectionObj
 
 IQ_VisionDetectionSettings
 

Detailed Description

Header for IQ API - type definitions.

Definition in file iq_apitypes.h.

Macro Definition Documentation

◆ IQ_MAX_DEVICE_PORTS

#define IQ_MAX_DEVICE_PORTS   32

Definition at line 53 of file iq_apitypes.h.

◆ VISION_SIG_FLAG_STATUS

#define VISION_SIG_FLAG_STATUS   (1<<0)

Definition at line 97 of file iq_apitypes.h.

Typedef Documentation

◆ IQ_DeviceTypeBuffer

typedef IQ_DeviceType IQ_DeviceTypeBuffer[IQ_MAX_DEVICE_PORTS]

Definition at line 54 of file iq_apitypes.h.

Enumeration Type Documentation

◆ IQ_DeviceType

IQ Device type definitions

Definition at line 35 of file iq_apitypes.h.

◆ IQVisionBlockType

enum IQVisionBlockType

Definition at line 68 of file iq_apitypes.h.

◆ IQVisionLedMode

enum IQVisionLedMode

Definition at line 82 of file iq_apitypes.h.

◆ IQVisionMode

IQ Vision sensor definitions

Definition at line 61 of file iq_apitypes.h.

◆ IQVisionWBMode

enum IQVisionWBMode

Definition at line 75 of file iq_apitypes.h.

◆ IQVisionWifiMode

enum IQVisionWifiMode

Definition at line 88 of file iq_apitypes.h.

Function Documentation

◆ __attribute()

struct __attribute ( (packed) )

block signature

block type

left side of block

top of block

width of block

height of block

angle of CC block in 0.1 deg units

not used yet

Definition at line 54 of file iq_apitypes.h.

◆ __attribute__()

struct __attribute__ ( (__packed__) )

Definition at line 116 of file iq_apitypes.h.

Variable Documentation

◆ IQ_DeviceVisionObject

IQ_DeviceVisionObject

Definition at line 108 of file iq_apitypes.h.

◆ IQ_DeviceVisionRgb

IQ_DeviceVisionRgb

Definition at line 116 of file iq_apitypes.h.

◆ IQ_VisionDetectionObj

IQ_VisionDetectionObj

Definition at line 129 of file iq_apitypes.h.

◆ IQ_VisionDetectionSettings

IQ_VisionDetectionSettings

Definition at line 143 of file iq_apitypes.h.