OWLIFT C Library for Linux: Macros
OWLIFT C Library for Linux  1.9.3
Top Page
Macros
Macros

Macros

#define VOSPI16_TO_UINT16(v)   ((((v) << 8) & 0xFF00) | ((((v) >> 8) & 0x00FF)))
 
#define UINT16_TO_VOSPI16(v)   ((((v) << 8) & 0xFF00) | ((((v) >> 8) & 0xFF)))
 
#define VOSPI32_TO_UINT32(v)   ((((v) >> 8) & 0x000000FF) | (((v) << 8) & 0x0000FF00) | (((v) >> 8) & 0x00FF0000) | (((v) << 8) & 0xFF000000))
 
#define UINT32_TO_VOSPI32(v)   (((((v) & 0x000000FF) << 8) ) | ((((v) & 0x0000FF00) >> 8)) | ((((v) & 0x00FF0000) << 8)) | ((((v) & 0xFF000000) >> 8)))
 
#define OWDECODE_RANGE_MIN_TEMP_DEFAULT   (INT32)((273.15 + 16.0) * 100)
 
#define OWDECODE_RANGE_MAX_TEMP_DEFAULT   (INT32)((273.15 + 48.0) * 100)
 
#define OWAGC_RANGE_MIN_TEMP_DEFAULT   (INT32)0
 
#define OWAGC_RANGE_MAX_TEMP_DEFAULT   (INT32)((273.15 + 430) * 100)
 
#define OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT   50
 
#define OWDECODE_NOISE_FILTER_THRESHOLD_MIN   1
 
#define OWDECODE_NOISE_FILTER_THRESHOLD_MAX   100
 
#define OWLIB_SERIAL_NUMBER_SIZE   4
 
#define OWLIB_CONFIG_F_ALWAYS_ON   (1 << 0)
 
#define OWLIB_CONFIG_F_ALWAYS_ON   (1 << 0)
 
#define OWLIFT_TYPE_A_PID   0x2300
 
#define OWLIFT_TYPE_B_PID   0x2301
 
#define OWLIFT_TYPE_F_PID   0x2303
 

Detailed Description

Macro Definition Documentation

◆ OWAGC_RANGE_MAX_TEMP_DEFAULT

#define OWAGC_RANGE_MAX_TEMP_DEFAULT   (INT32)((273.15 + 430) * 100)

The default value of a maximum temperature for Auto Gain Control.

◆ OWAGC_RANGE_MIN_TEMP_DEFAULT

#define OWAGC_RANGE_MIN_TEMP_DEFAULT   (INT32)0

The default value of a minimum temperature for Auto Gain Control.

◆ OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT

#define OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT   50

The default value of a threshold for Noise Filter.

◆ OWDECODE_NOISE_FILTER_THRESHOLD_MAX

#define OWDECODE_NOISE_FILTER_THRESHOLD_MAX   100

The maximum value of a threshold for Noise Filter.

◆ OWDECODE_NOISE_FILTER_THRESHOLD_MIN

#define OWDECODE_NOISE_FILTER_THRESHOLD_MIN   1

The minimum value of a threshold for Noise Filter.

◆ OWDECODE_RANGE_MAX_TEMP_DEFAULT

#define OWDECODE_RANGE_MAX_TEMP_DEFAULT   (INT32)((273.15 + 48.0) * 100)

The default value of a maximum temperature for Manual Gain Control.

◆ OWDECODE_RANGE_MIN_TEMP_DEFAULT

#define OWDECODE_RANGE_MIN_TEMP_DEFAULT   (INT32)((273.15 + 16.0) * 100)

The default value of a minimum temperature for Manual Gain Control.

◆ OWLIB_CONFIG_F_ALWAYS_ON [1/2]

#define OWLIB_CONFIG_F_ALWAYS_ON   (1 << 0)

Device Configuration: Always turns on the sensor's power while not playing (default value).

◆ OWLIB_CONFIG_F_ALWAYS_ON [2/2]

#define OWLIB_CONFIG_F_ALWAYS_ON   (1 << 0)

Device Configuration: Always turns on the sensor's power while not playing (default value).

◆ OWLIB_SERIAL_NUMBER_SIZE

#define OWLIB_SERIAL_NUMBER_SIZE   4

The size of a serial number in WORDs.

◆ OWLIFT_TYPE_A_PID

#define OWLIFT_TYPE_A_PID   0x2300

OWLIFT Type-A's product ID.

◆ OWLIFT_TYPE_B_PID

#define OWLIFT_TYPE_B_PID   0x2301

OWLIFT Type-B's product ID.

◆ OWLIFT_TYPE_F_PID

#define OWLIFT_TYPE_F_PID   0x2303

OWLIFT Type-F's product ID.

◆ UINT16_TO_VOSPI16

#define UINT16_TO_VOSPI16 (   v)    ((((v) << 8) & 0xFF00) | ((((v) >> 8) & 0xFF)))

Converts 16-bit value from host-byte order to device-byte order.

◆ UINT32_TO_VOSPI32

#define UINT32_TO_VOSPI32 (   v)    (((((v) & 0x000000FF) << 8) ) | ((((v) & 0x0000FF00) >> 8)) | ((((v) & 0x00FF0000) << 8)) | ((((v) & 0xFF000000) >> 8)))

Converts 32-bit value from host-byte order to device-byte order.

◆ VOSPI16_TO_UINT16

#define VOSPI16_TO_UINT16 (   v)    ((((v) << 8) & 0xFF00) | ((((v) >> 8) & 0x00FF)))

Converts 16-bit value from device-byte order to host-byte order.

◆ VOSPI32_TO_UINT32

#define VOSPI32_TO_UINT32 (   v)    ((((v) >> 8) & 0x000000FF) | (((v) << 8) & 0x0000FF00) | (((v) >> 8) & 0x00FF0000) | (((v) << 8) & 0xFF000000))

Converts 32-bit value from device-byte order to host-byte order.