• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP Core
  • <CDPDefines> - CDP Defines
  • 5.0.0

<CDPDefines> - CDP Defines

  • Obsolete members

Types

enum CDPCOMPONENT_PRIORITY_e { CDPCOMPONENT_PRIORITY_NONE, CDPCOMPONENT_PRIORITY_NORMAL, CDPCOMPONENT_PRIORITY_HIGH, CDPCOMPONENT_PRIORITY_LOW }
enum ProcessPriority { ProcessPriorityLow, ProcessPriorityNormal, ProcessPriorityHigh, ProcessPriorityRealTime, UnknownProcessPriority }
enum ThreadPriority { IdleThreadPriority, LowestThreadPriority, LowThreadPriority, NormalThreadPriority, ..., UnknownThreadPriority }

Macros

CDP_DEBUG
DebugLevel(level)
LINUX
PI
WIN32_LEAN_AND_MEAN
WINCE
WINDOWS
ZEROLIMIT
debugEx

Type Documentation

enum CDP::CDPCOMPONENT_PRIORITY_e

This enum specifies the scheduling priority of a CDPComponent

ConstantValueDescription
CDP::CDPCOMPONENT_PRIORITY_NONE0The CDPComponent is not scheduled.
CDP::CDPCOMPONENT_PRIORITY_NORMAL1The CDPComponent is scheduled at normal priority by the real-time scheduler.
CDP::CDPCOMPONENT_PRIORITY_HIGH2The CDPComponent is scheduled at high priority by the real-time scheduler.
CDP::CDPCOMPONENT_PRIORITY_LOW3The CDPComponent is scheduled at low priority by the non-real-time scheduler.

enum CDP::ProcessPriority

This enum type specifies the priority of a process:

ConstantValueDescription
CDP::ProcessPriorityLow0Low process priority.
CDP::ProcessPriorityNormal1Normal process priority.
CDP::ProcessPriorityHigh2High process priority.
CDP::ProcessPriorityRealTime3Real-time process priority.
CDP::UnknownProcessPriority4Unknown process priority.

enum CDP::ThreadPriority

This enum type specifies the priority of a thread:

ConstantValueDescription
CDP::IdleThreadPriority0Idle thread priority.
CDP::LowestThreadPriority1The lowest thread priority.
CDP::LowThreadPriority2Low normal thread priority.
CDP::NormalThreadPriority3Normal thread priority.
CDP::AboveNormalThreadPriority4Above normal thread priority.
CDP::HighThreadPriority5High thread priority.
CDP::AboveHighThreadPriority6Above High thread priority.
CDP::HighestThreadPriority7The highest thread priority.
CDP::UnknownThreadPriority8Unknown thread priority.

Macro Documentation

CDP_DEBUG

Enables debug interface

DebugLevel(level)

Use like this:

if (DebugLevel(DEBUGLEVEL_EXTENDED))
  CDPMessage("...");

LINUX

OS installation selector for Linux

PI

Constant definition for PI

WIN32_LEAN_AND_MEAN

Excludes rarely used stuff from Windows headers, also ensures that winsock.h is not included by windows.h

WINCE

OS installation selector for Windows CE

WINDOWS

OS installation selector for Windows

ZEROLIMIT

Constant definition for 0 ( if(x<ZEROLIMIT) {} )

debugEx

Global debug flag

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top