plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::st 命名空间参考

命名空间

namespace  binding_manifest_detail
namespace  binding_registry_detail
namespace  bytecode_detail
namespace  sfc_compile_detail
namespace  generated
namespace  binding_type
namespace  l2b_detail
namespace  language_detail
namespace  detail
namespace  sfc_detail
namespace  tasking_detail
namespace  builtin
namespace  type_desc_detail
namespace  wcet_detail

类

struct  AccessStep
struct  InitItem
struct  Expr
struct  CaseLabel
struct  CaseArm
struct  CallParam
struct  Stmt
struct  VarDecl
struct  StructFieldDecl
struct  EnumMemberDecl
struct  UserTypeDecl
struct  SfcActionBlockDecl
struct  SfcStepDecl
struct  SfcTransitionDecl
struct  SfcActionDecl
struct  SfcNetworkDecl
struct  Ast
struct  BindingPositionProfileEntry
struct  BindingVelocityProfileEntry
struct  BindingAccelerationProfileEntry
class  BindingTarget
struct  BindingPinDesc
struct  BindingFbDesc
struct  BindingTargetDesc
class  BindingManifest
struct  BindingDispatcher
struct  BindingProfileSlot
struct  DebugArtifactReport
struct  VarInfo
struct  LocatedVarInfo
struct  ProcessImageInfo
struct  FbInfo
struct  PouInfo
struct  InstanceInfo
struct  SfcTraceRecord
struct  SfcRegionInfo
struct  SfcStepInfo
struct  SfcTransitionInfo
struct  SfcActionInfo
struct  SfcActionBlockInfo
struct  SfcParallelRegionInfo
struct  SfcNetworkInfo
struct  SfcRunnerStorage
struct  DebugRuntimeStorage
struct  Program
struct  CodegenLimits
class  Codegen
struct  CompileOptions
struct  CompileResult
class  IncrementalCompiler
class  ConfigurationRuntime
struct  ConvDesc
class  DebugSession
struct  SymbolId
struct  SymbolInfo
struct  InstructionId
struct  SourceMapEntry
struct  SourceMap
struct  DebugCallSite
struct  DebugTraceRecord
struct  DebugTraceReport
struct  DebugStop
struct  DebugSnapshotEntry
struct  DebugStackFrame
struct  DebugSfcStepState
struct  DebugSnapshot
struct  DebugSessionOptions
struct  DebugTarget
struct  ForceReceipt
class  RuntimeDebugHooks
struct  Diagnostic
struct  LanguagePosition
struct  LanguageRange
struct  LanguageDiagnostic
struct  LanguageCompletionItem
struct  LanguageCompletionList
struct  LanguageDefinition
struct  LanguageHover
struct  LanguageUpdateReport
class  LanguageDocument
class  Lexer
struct  ParseResult
class  Parser
struct  PinDesc
struct  PinTable
struct  SnapshotReport
class  ProcessImage
struct  ExprInfo
struct  StmtInfo
struct  SemaLimits
struct  SemaResult
class  Sema
struct  StandardFunctionManifestEntry
struct  ProgramMappingInfo
struct  TaskInfo
struct  ResourceInfo
struct  ConfigurationInfo
struct  TaskingReport
struct  EventSample
struct  TaskStatus
struct  ResourceStatus
struct  TaskRuntimeStorage
struct  ResourceRuntimeStorage
struct  Token
struct  IntegerValue
struct  EnumItem
struct  SubrangeDesc
struct  ArrayBound
struct  ArrayDimension
struct  ArrayDesc
struct  StructFieldSpec
struct  StructField
struct  StructDesc
struct  StringDesc
struct  RefDesc
struct  TypeDesc
class  TypeTable
class  Instance
struct  WcetOpcodeCost
struct  WcetReport

类型定义

using ExprIndex = std::int32_t
using StmtIndex = std::int32_t
using BindingPinId = std::uint16_t
using BindingInitOp = void (*)(FbType, unsigned char *, std::int64_t)
using BindingStoreOp
using BindingStoreObjectOp
using BindingLoadOp
using BindingLoadObjectOp
using BindingStoreSequenceOp
using BindingLoadSequenceOp
using BindingStoreTaggedReferenceOp
using BindingLoadTaggedReferenceOp
using BindingCycleOp = void (*)(FbType, unsigned char *, std::int64_t)
using AxisTargetStorage
using GroupTargetStorage
using PathTableStorage = std::array<fb::PathTable *, kMaxTableBindings>
using PathDescriptionStorage
using CamSwitchTableStorage
using CamSwitchOutputStorage
using CamTrackOptionStorage
using CamTableStorage
using PositionProfileStorage
using VelocityProfileStorage = PositionProfileStorage
using AccelerationProfileStorage = PositionProfileStorage
using KinTransformStorage
using BreakpointId = std::uint32_t
using TypeId = std::uint32_t
using FbType = generated::StBindingFbType

枚举

enum class  ExprKind : std::uint8_t {
  literal_int , literal_real , literal_bool , literal_time ,
  literal_typed , literal_enum , literal_string , literal_wstring ,
  literal_date , literal_tod , literal_dt , variable ,
  pin_read , unary , binary , call ,
  aggregate_init
}
enum class  UnaryOp : std::uint8_t { negate , logical_not }
enum class  BinaryOp : std::uint8_t {
  add , subtract , multiply , divide ,
  modulo , logical_and , logical_or , logical_xor ,
  cmp_eq , cmp_ne , cmp_lt , cmp_gt ,
  cmp_le , cmp_ge , power
}
enum class  StmtKind : std::uint8_t {
  assign , if_ , case_ , for_ ,
  while_ , repeat , fb_call , output_commit ,
  exit_ , continue_ , return_ , empty
}
enum class  UserTypeKind : std::uint8_t { enum_ , subrange , array , struct_ }
enum class  SfcQualifier : std::uint8_t {
  n = 0 , s , r , l ,
  d , p , sd , ds ,
  sl
}
enum class  BindingTargetKind : std::uint8_t { invalid = 0 , axis , group }
enum class  BindingError : std::uint8_t {
  ok = 0 , unknown , null_target , duplicate ,
  locked , wrong_kind , capacity_exceeded , invalid_value
}
enum class  BindingFbId : std::uint32_t {
  invalid = 0 , r_trig = 0x00010001U , f_trig = 0x00010002U , sr = 0x00010003U ,
  rs = 0x00010004U , ton = 0x00010005U , tof = 0x00010006U , tp = 0x00010007U ,
  ctu = 0x00010008U , ctd = 0x00010009U , ctud = 0x0001000aU , mc_power = 0x00020001U ,
  mc_home = 0x00020002U , mc_stop = 0x00020003U , mc_halt = 0x00020004U , mc_move_absolute = 0x00020005U ,
  mc_move_relative = 0x00020006U , mc_move_additive = 0x00020007U , mc_move_velocity = 0x0002000aU , mc_set_override = 0x00020012U ,
  mc_reset = 0x00020021U , mc_cam_out = 0x00020027U , mc_gear_out = 0x00020029U , mc_add_axis_to_group = 0x00030001U ,
  mc_remove_axis_from_group = 0x00030002U , mc_ungroup_all_axes = 0x00030003U , mc_group_read_status = 0x0003001eU
}
enum class  BindingSet : std::uint8_t { iec_basic = 0 , plcopen_part1_part2 , plcopen_part4 , plcopen_part5 }
enum class  PinDirection : std::uint8_t { input = 0 , output , in_out }
enum class  BindingStorageKind : std::uint8_t {
  none = 0 , axis_targets , group_targets , path_tables ,
  path_descriptions , cam_switch_tables , cam_switch_outputs , cam_track_options ,
  cam_tables , position_profiles , velocity_profiles , acceleration_profiles ,
  kin_transforms
}
enum class  Op : std::uint8_t {
  halt = 0 , push_const , load_var , store_var ,
  add_int , sub_int , mul_int , div_int ,
  mod_int , neg_int , add_dint , sub_dint ,
  mul_dint , div_dint , mod_dint , neg_dint ,
  add_real , sub_real , mul_real , div_real ,
  neg_real , add_lreal , sub_lreal , mul_lreal ,
  div_lreal , neg_lreal , add_time , sub_time ,
  and_bool , or_bool , xor_bool , not_bool ,
  cmp_eq_i , cmp_ne_i , cmp_lt_i , cmp_gt_i ,
  cmp_le_i , cmp_ge_i , cmp_eq_f , cmp_ne_f ,
  cmp_lt_f , cmp_gt_f , cmp_le_f , cmp_ge_f ,
  jmp , jmp_if_false , for_guard , for_test ,
  for_step_int , for_step_dint , fb_store_in , fb_store_object ,
  fb_call , fb_load_out , iarith , cmp_u ,
  bit_and , bit_or , bit_xor , bit_not ,
  time_scale , power , conv_wrap , conv_i2d ,
  conv_u2d , f_narrow , conv_round , conv_trunc ,
  conv_to_bool , conv_f_to_bool , check_range , load_access ,
  store_access , copy_bytes , string_copy , string_copy_const ,
  string_compare , string_index , check_unicode , date_arith ,
  alias_guard , string_length , commit_outputs , fb_load_object ,
  standard_scalar , standard_string , debug_probe
}
enum class  ProcessArea : std::uint8_t { input = 0 , output , memory }
enum class  SfcEventKind : std::uint8_t {
  step_exit = 0 , transition_fire , step_enter , qualifier_update ,
  action_execute
}
enum class  SfcRunnerPhase : std::uint8_t {
  none = 0 , stage_vars , base , stage_active ,
  stage_firing , stage_blocks , stage_actions , stage_direct ,
  transitions , active_updates , qualifier_blocks , qualifier_actions ,
  actions , trace_exits , trace_transitions , trace_enters ,
  trace_qualifiers , trace_actions , commit_vars , commit_active ,
  commit_blocks , commit_actions , finish
}
enum class  IncrementalStatus : std::uint8_t { ok = 0 }
enum class  ConvKind : std::uint8_t {
  unsupported = 0 , identity , wrap , int_to_float ,
  uint_to_float , float_round , float_narrow , float_widen ,
  to_bool_int , to_bool_float
}
enum class  DebugMode : std::uint8_t { disabled = 0 , enabled }
enum class  DebugError : std::uint8_t {
  ok = 0 , snapshot_busy , capacity_exceeded , permission_denied ,
  task_faulted , debugging_disabled , invalid_source_location , invalid_instruction ,
  invalid_symbol , type_mismatch , watch_plan_frozen , invalid_argument
}
enum class  DebugEventKind : std::uint8_t {
  scan = 0 , task , pou , sfc ,
  fb , fault
}
enum class  DebugRegionKind : std::uint8_t { base = 0 , sfc_transition , sfc_action }
enum class  DebugStopReason : std::uint8_t { none = 0 , breakpoint , step , fault }
enum class  DebugCommand : std::uint8_t { continue_ = 0 , step_in , step_over , step_out }
enum class  DiagCode : std::uint16_t {
  lex_invalid_character = 100 , lex_unterminated_comment = 101 , lex_bad_numeric_literal = 102 , lex_bad_time_literal = 103 ,
  lex_literal_overflow = 104 , lex_bad_identifier = 105 , parse_expected_token = 200 , parse_unexpected_token = 201 ,
  parse_nesting_too_deep = 202 , parse_expected_statement = 203 , parse_expected_expression = 204 , parse_expected_type = 205 ,
  sema_unknown_identifier = 300 , sema_duplicate_identifier = 301 , sema_type_mismatch = 302 , sema_literal_out_of_range = 303 ,
  sema_not_assignable = 304 , sema_division_by_zero_const = 305 , sema_for_control_assigned = 306 , sema_for_step_zero_const = 307 ,
  sema_exit_outside_loop = 308 , sema_unknown_fb_pin = 309 , sema_pin_not_input = 310 , sema_pin_not_output = 311 ,
  sema_not_const_expr = 312 , sema_case_label_duplicate = 313 , sema_case_label_range_invalid = 314 , sema_not_fb_instance = 315 ,
  sema_operand_type_invalid = 316 , sema_ambiguous_literal = 317 , sema_range_violation = 318 , sema_index_out_of_range = 319 ,
  sema_invalid_array_bounds = 320 , sema_recursive_type = 321 , sema_string_capacity_exceeded = 322 , sema_invalid_string_literal = 323 ,
  date_time_range_violation = 324 , sema_alias_violation = 325 , sema_inout_requires_lvalue = 326 , sema_missing_argument = 327 ,
  sema_duplicate_argument = 328 , sema_call_form_mixed = 329 , sema_duplicate_pou = 330 , sema_external_required = 331 ,
  sema_external_not_unique = 332 , sema_fb_instance_required = 333 , sema_standard_name_conflict = 334 , sema_recursive_pou = 335 ,
  sema_no_matching_overload = 336 , sema_ambiguous_overload = 337 , sema_invalid_argument = 338 , sema_process_image_overlap = 339 ,
  sema_task_interval_invalid = 340 , sema_task_phase_invalid = 341 , sema_task_priority_invalid = 342 , sema_program_duplicate_mapping = 343 ,
  warning_program_unmapped = 344 , unsupported_l5_task_control = 345 , sema_unsafe_sfc_network = 346 , sema_sfc_transition_side_effect = 347 ,
  capacity_code = 400 , capacity_variables = 401 , capacity_fb_instances = 402 , capacity_diagnostics = 403 ,
  capacity_stack = 404 , capacity_types = 405 , capacity_exceeded = 406 , capacity_resources = 407 ,
  capacity_tasks = 408 , capacity_program_mappings = 409 , unsupported_l1 = 501 , unsupported_l2 = 502 ,
  unsupported_l3 = 503 , unsupported_l4 = 504 , unsupported_l5 = 505 , unsupported_l6 = 506 ,
  unsupported_l7 = 507 , unsupported_non_goal = 508 , unsupported_l1b2_dynamic_array = 509 , unsupported_l1b3_timezone = 510 ,
  unsupported_l2b_object_extension = 511
}
enum class  LanguageSymbolKind : std::uint8_t {
  variable = 0 , parameter , function_ , function_block ,
  program , type , standard_function , standard_function_block ,
  field , keyword
}
enum class  SnapshotKind : std::uint8_t { retain = 0 , persistent }
enum class  SnapshotError : std::uint8_t {
  ok = 0 , invalid_argument , capacity_exceeded , malformed ,
  version_mismatch , fingerprint_mismatch
}
enum class  StandardFunction : std::uint8_t {
  abs , sqrt , ln , log ,
  exp , sin , cos , tan ,
  asin , acos , atan , add ,
  sub , mul , div , mod ,
  expt , min , max , limit ,
  sel , mux , gt , ge ,
  eq , le , lt , ne ,
  shl , shr , rol , ror ,
  len , left , right , mid ,
  concat , insert , delete_ , replace ,
  find , add_time , add_tod_time , add_dt_time ,
  sub_time , sub_date_date , sub_tod_time , sub_dt_dt ,
  multime , divtime , concat_date_tod , count
}
enum class  TaskKind : std::uint8_t { periodic = 0 , event }
enum class  TaskState : std::uint8_t { idle = 0 , running , paused , faulted }
enum class  TaskFault : std::uint8_t { none = 0 , task_budget_exceeded , task_wallclock_exceeded , task_runtime_fault }
enum class  TaskFaultElementKind : std::uint8_t { none = 0 , transition , action }
enum class  ResourceFault : std::uint8_t { none = 0 , image_commit_failed }
enum class  TokenKind : std::uint8_t {
  end_of_input = 0 , error , identifier , int_literal ,
  real_literal , time_literal , bool_literal , typed_literal ,
  string_literal , wstring_literal , date_literal , tod_literal ,
  dt_literal , located_address , assign , colon ,
  semicolon , comma , dot , dotdot ,
  hash , lparen , rparen , lbracket ,
  rbracket , plus , minus , star ,
  star_star , slash , ampersand , equal ,
  not_equal , less , greater , less_equal ,
  greater_equal , kw_program , kw_end_program , kw_var ,
  kw_end_var , kw_if , kw_then , kw_elsif ,
  kw_else , kw_end_if , kw_case , kw_of ,
  kw_end_case , kw_for , kw_to , kw_by ,
  kw_do , kw_end_for , kw_while , kw_end_while ,
  kw_repeat , kw_until , kw_end_repeat , kw_exit ,
  kw_continue , kw_return , kw_and , kw_or ,
  kw_xor , kw_not , kw_mod , kw_sfc ,
  kw_end_sfc , kw_initial_step , kw_step , kw_end_step ,
  kw_transition , kw_end_transition , kw_from , kw_action ,
  kw_end_action , kw_simultaneous , kw_terminal , kw_constant ,
  kw_retain , kw_persistent , kw_at , kw_type ,
  kw_end_type , kw_array , kw_struct , kw_end_struct ,
  kw_bool , kw_int , kw_dint , kw_real ,
  kw_lreal , kw_time , kw_sint , kw_lint ,
  kw_usint , kw_uint , kw_udint , kw_ulint ,
  kw_byte , kw_word , kw_dword , kw_lword ,
  kw_char , kw_wchar , kw_string , kw_wstring ,
  kw_date , kw_tod , kw_dt , unsupported_keyword
}
enum class  TypeKind : std::uint8_t {
  elementary , enum_ , subrange , array ,
  struct_ , string , wstring , date ,
  tod , dt , ref
}
enum class  TypeError : std::uint8_t {
  ok , invalid_type , invalid_name , duplicate_type ,
  duplicate_member , invalid_integer_base , integer_sign_mismatch , value_out_of_range ,
  invalid_bounds , invalid_dimensions , invalid_capacity , recursive_type ,
  size_overflow , not_found
}
enum class  IntegerSign : std::uint8_t { none , signed_ , unsigned_ }
enum class  Type : std::uint8_t {
  bool_ = 0 , int_ = 1 , dint = 2 , real = 3 ,
  lreal = 4 , time = 5 , sint = 6 , lint = 7 ,
  usint = 8 , uint_ = 9 , udint = 10 , ulint = 11 ,
  byte_ = 12 , word = 13 , dword = 14 , lword = 15 ,
  axis_ref = 16 , char_ = 17 , wchar = 18 , string_ = 19 ,
  wstring = 20 , date = 21 , tod = 22 , dt = 23 ,
  group_ref = 24
}
enum class  ScanError : std::uint8_t {
  ok = 0 , not_loaded , division_by_zero , for_step_zero ,
  budget_exceeded , invalid_bytecode , conversion_invalid , range_violation ,
  string_capacity_exceeded , date_time_range_violation , alias_violation , invalid_argument ,
  paused
}
enum class  InstanceState : std::uint8_t { idle = 0 , running , complete , faulted }
enum class  WcetBudgetRule : std::uint8_t {
  unreviewed = 0 , fixed_one , string_capacity , object_size ,
  standard_function , output_count
}
enum class  WcetTimingClass : std::uint8_t {
  fixed = 0 , linear_bytes , standard_function , native_fb ,
  count
}

函数

void fb_init (FbType type, unsigned char *storage, std::int64_t task_period_ns)
void fb_destroy (FbType type, unsigned char *storage) noexcept
bool fb_store_scalar (FbType type, unsigned char *storage, std::uint16_t pin, std::uint64_t bits) noexcept
bool fb_load_scalar (FbType type, const unsigned char *storage, std::uint16_t pin, std::uint64_t &bits) noexcept
bool fb_store_object (FbType type, unsigned char *storage, std::uint8_t pin, const unsigned char *bytes, TypeId type_id, std::uint32_t size) noexcept
bool fb_load_object (FbType type, const unsigned char *storage, std::uint8_t pin, unsigned char *bytes, TypeId type_id, std::uint32_t size) noexcept
bool fb_store_sequence (FbType type, unsigned char *storage, std::uint16_t pin, generated::StBindingNativeSequenceValue value) noexcept
bool fb_load_sequence (FbType type, const unsigned char *storage, std::uint16_t pin, generated::StBindingNativeSequenceValue &value) noexcept
bool fb_store_tagged_reference (FbType type, unsigned char *storage, std::uint16_t pin, TypeId type_id, generated::StBindingNativeTaggedReferenceValue value) noexcept
bool fb_load_tagged_reference (FbType type, const unsigned char *storage, std::uint16_t pin, TypeId type_id, generated::StBindingNativeTaggedReferenceValue &value) noexcept
void fb_cycle (FbType type, unsigned char *storage, std::int64_t task_period_ns=0)
const BindingManifest & binding_manifest ()
const BindingDispatcher * binding_dispatcher (BindingFbId id) noexcept
bool binding_pin_registered (BindingFbId fb_id, BindingPinId pin_id) noexcept
bool binding_fb_registered (BindingFbId id) noexcept
constexpr BindingStorageKind binding_storage_kind (Type type, TypeId type_id)
constexpr std::size_t binding_storage_bytes (BindingStorageKind kind)
void finalize_debug_symbols (Program &artifact)
void finalize_debug_instruction_ids (Program &artifact)
CompileResult compile_single_program_impl (std::string_view source, const CompileOptions &options, bool trusted_debug_provenance)
CompileResult compile_single_program (std::string_view source, const CompileOptions &options=CompileOptions{})
CompileResult compile_without_sfc (std::string_view source, const CompileOptions &options=CompileOptions{})
CompileResult compile (std::string_view source, const CompileOptions &options=CompileOptions{})
constexpr ConvKind conv_kind (Type from, Type to)
constexpr const char * to_string (ConvKind kind)
bool resolve_conversion (std::string_view lower, ConvDesc &desc)
constexpr bool operator== (SymbolId left, SymbolId right) noexcept
constexpr bool operator!= (SymbolId left, SymbolId right) noexcept
SymbolId stable_symbol_id (std::string_view qualified_name) noexcept
constexpr bool operator== (const InstructionId &left, const InstructionId &right) noexcept
constexpr bool operator!= (const InstructionId &left, const InstructionId &right) noexcept
constexpr const char * to_string (DiagCode code)
TypeError install_binding_types (TypeTable &types)
bool operator== (const LanguagePosition &left, const LanguagePosition &right)
bool operator!= (const LanguagePosition &left, const LanguagePosition &right)
char language_ascii_lower (char value)
bool language_ascii_iequals (std::string_view left, std::string_view right)
constexpr TypeId pin_type_id (const PinDesc &pin) noexcept
constexpr bool pin_accepts_input (const PinDesc &pin) noexcept
constexpr bool pin_produces_output (const PinDesc &pin) noexcept
constexpr PinTable pin_table (FbType type) noexcept
constexpr std::size_t fb_size (FbType type) noexcept
constexpr std::size_t fb_align (FbType type) noexcept
constexpr const auto & standard_function_manifest ()
std::string standard_function_manifest_dump ()
bool resolve_standard_function (std::string_view lower, StandardFunction &function)
constexpr std::uint32_t saturating_cost_add (std::uint32_t left, std::uint32_t right)
constexpr std::uint32_t saturating_cost_mul (std::uint32_t left, std::uint32_t right)
constexpr std::uint32_t standard_string_cost (StandardFunction function, const std::uint32_t *capacities, std::uint8_t count, std::uint32_t destination_capacity)
bool is_reserved_standard_function (std::string_view lower)
constexpr bool operator== (IntegerValue left, IntegerValue right)
constexpr bool operator!= (IntegerValue left, IntegerValue right)
constexpr TypeId type_id (Type type)
constexpr Type type_from_id (TypeId id)
constexpr bool is_signed_int (Type type)
constexpr bool is_unsigned_int (Type type)
constexpr bool is_integer (Type type)
constexpr bool is_bitstring (Type type)
constexpr bool is_real_family (Type type)
constexpr int width_bits (Type type)
constexpr bool widens_to (Type from, Type to)
constexpr const char * to_string (Type type)
constexpr const char * to_string (FbType type)
constexpr const char * to_string (ScanError error)
constexpr WcetOpcodeCost wcet_opcode_cost (Op op) noexcept
constexpr const char * wcet_budget_rule_name (WcetBudgetRule rule) noexcept
constexpr const char * wcet_timing_class_name (WcetTimingClass timing) noexcept
WcetReport make_wcet_report (const Program &program) noexcept

变量

constexpr ExprIndex kNoExpr = -1
constexpr std::uint16_t kMaxAxisBindings = 64
constexpr std::uint16_t kMaxGroupBindings = 16
constexpr std::uint16_t kMaxFbInstances = 1024
constexpr std::size_t kMaxTableBindings = 32
constexpr std::size_t kMaxProfileSegments = 8
constexpr std::uint32_t kBytecodeFormatVersion = 6
constexpr std::uint32_t kCanonicalManifestVersion = 2
constexpr Type kConvTypes []
constexpr int kConvTypeCount = 15
constexpr std::size_t kMaxDebugStackFrames = 64
constexpr std::size_t kMaxDebugSfcSteps = 256
constexpr std::size_t kFbAlign = 8
constexpr std::array< StandardFunctionManifestEntry, 51 > kStandardFunctionManifest
constexpr std::uint32_t invalid_artifact_index
constexpr TypeId invalid_type_id = 0
constexpr TypeId first_load_type_id = 65536
constexpr int kTypeCount = 25
constexpr int kFbTypeCount = static_cast<int>(FbType::count)
constexpr std::uint32_t kWcetReviewedBytecodeFormatVersion = 6
constexpr std::size_t kWcetReviewedOpcodeCount = 87
constexpr std::size_t kWcetTimingClassCount

类型定义说明

◆ AccelerationProfileStorage

◆ AxisTargetStorage

初始值:
std::array<axis::AxisModel *, kMaxAxisBindings>

在文件 binding_storage.h 第 41 行定义.

◆ BindingCycleOp

using plcopen::core::st::BindingCycleOp = void (*)(FbType, unsigned char *, std::int64_t)

在文件 binding_registry.h 第 36 行定义.

◆ BindingInitOp

using plcopen::core::st::BindingInitOp = void (*)(FbType, unsigned char *, std::int64_t)

在文件 binding_registry.h 第 13 行定义.

◆ BindingLoadObjectOp

初始值:
bool (*)(FbType, const unsigned char *,
std::uint8_t, unsigned char *, TypeId,
std::uint32_t)
std::uint32_t TypeId
generated::StBindingFbType FbType

在文件 binding_registry.h 第 21 行定义.

◆ BindingLoadOp

初始值:
bool (*)(FbType, const unsigned char *, std::uint16_t,
std::uint64_t &)

在文件 binding_registry.h 第 19 行定义.

◆ BindingLoadSequenceOp

◆ BindingLoadTaggedReferenceOp

◆ BindingPinId

using plcopen::core::st::BindingPinId = std::uint16_t

在文件 binding_manifest.h 第 66 行定义.

◆ BindingStoreObjectOp

初始值:
bool (*)(FbType, unsigned char *, std::uint8_t,
const unsigned char *, TypeId,
std::uint32_t)

在文件 binding_registry.h 第 16 行定义.

◆ BindingStoreOp

初始值:
bool (*)(FbType, unsigned char *, std::uint16_t,
std::uint64_t)

在文件 binding_registry.h 第 14 行定义.

◆ BindingStoreSequenceOp

初始值:
bool (*)(
FbType, unsigned char *, std::uint16_t,

在文件 binding_registry.h 第 24 行定义.

◆ BindingStoreTaggedReferenceOp

初始值:
bool (*)(
FbType, unsigned char *, std::uint16_t, TypeId,

在文件 binding_registry.h 第 30 行定义.

◆ BreakpointId

using plcopen::core::st::BreakpointId = std::uint32_t

在文件 debug_types.h 第 202 行定义.

◆ CamSwitchOutputStorage

初始值:
std::array<fb::CamSwitchOutputsView, kMaxTableBindings>

在文件 binding_storage.h 第 50 行定义.

◆ CamSwitchTableStorage

初始值:
std::array<fb::CamSwitchTableView, kMaxTableBindings>

在文件 binding_storage.h 第 48 行定义.

◆ CamTableStorage

初始值:
std::array<exec::CamTableView, kMaxTableBindings>

在文件 binding_storage.h 第 54 行定义.

◆ CamTrackOptionStorage

初始值:
std::array<fb::CamTrackOptionsView, kMaxTableBindings>

在文件 binding_storage.h 第 52 行定义.

◆ ExprIndex

using plcopen::core::st::ExprIndex = std::int32_t

在文件 ast.h 第 17 行定义.

◆ FbType

◆ GroupTargetStorage

初始值:
std::array<axis::AxisGroup *, kMaxGroupBindings>

在文件 binding_storage.h 第 43 行定义.

◆ KinTransformStorage

初始值:
std::array<axis::KinTransformRef, kMaxTableBindings>

在文件 binding_storage.h 第 60 行定义.

◆ PathDescriptionStorage

初始值:
std::array<fb::PathDescription, kMaxTableBindings>

在文件 binding_storage.h 第 46 行定义.

◆ PathTableStorage

◆ PositionProfileStorage

初始值:
std::array<BindingProfileSlot, kMaxTableBindings>

在文件 binding_storage.h 第 56 行定义.

◆ StmtIndex

using plcopen::core::st::StmtIndex = std::int32_t

在文件 ast.h 第 18 行定义.

◆ TypeId

using plcopen::core::st::TypeId = std::uint32_t

在文件 type_desc.h 第 17 行定义.

◆ VelocityProfileStorage

枚举类型说明

◆ BinaryOp

enum class plcopen::core::st::BinaryOp : std::uint8_t
strong
枚举值
add 
subtract 
multiply 
divide 
modulo 
logical_and 
logical_or 
logical_xor 
cmp_eq 
cmp_ne 
cmp_lt 
cmp_gt 
cmp_le 
cmp_ge 
power 

在文件 ast.h 第 61 行定义.

◆ BindingError

enum class plcopen::core::st::BindingError : std::uint8_t
strong
枚举值
ok 
unknown 
null_target 
duplicate 
locked 
wrong_kind 
capacity_exceeded 
invalid_value 

在文件 binding.h 第 37 行定义.

◆ BindingFbId

enum class plcopen::core::st::BindingFbId : std::uint32_t
strong
枚举值
invalid 
r_trig 
f_trig 
sr 
rs 
ton 
tof 
tp 
ctu 
ctd 
ctud 
mc_power 
mc_home 
mc_stop 
mc_halt 
mc_move_absolute 
mc_move_relative 
mc_move_additive 
mc_move_velocity 
mc_set_override 
mc_reset 
mc_cam_out 
mc_gear_out 
mc_add_axis_to_group 
mc_remove_axis_from_group 
mc_ungroup_all_axes 
mc_group_read_status 

在文件 binding_manifest.h 第 20 行定义.

◆ BindingSet

enum class plcopen::core::st::BindingSet : std::uint8_t
strong
枚举值
iec_basic 
plcopen_part1_part2 
plcopen_part4 
plcopen_part5 

在文件 binding_manifest.h 第 51 行定义.

◆ BindingStorageKind

enum class plcopen::core::st::BindingStorageKind : std::uint8_t
strong
枚举值
none 
axis_targets 
group_targets 
path_tables 
path_descriptions 
cam_switch_tables 
cam_switch_outputs 
cam_track_options 
cam_tables 
position_profiles 
velocity_profiles 
acceleration_profiles 
kin_transforms 

在文件 binding_storage.h 第 18 行定义.

◆ BindingTargetKind

enum class plcopen::core::st::BindingTargetKind : std::uint8_t
strong
枚举值
invalid 
axis 
group 

在文件 binding.h 第 30 行定义.

◆ ConvKind

enum class plcopen::core::st::ConvKind : std::uint8_t
strong
枚举值
unsupported 
identity 
wrap 
int_to_float 
uint_to_float 
float_round 
float_narrow 
float_widen 
to_bool_int 
to_bool_float 

在文件 conv.h 第 19 行定义.

◆ DebugCommand

enum class plcopen::core::st::DebugCommand : std::uint8_t
strong
枚举值
continue_ 
step_in 
step_over 
step_out 

在文件 debug_types.h 第 226 行定义.

◆ DebugError

enum class plcopen::core::st::DebugError : std::uint8_t
strong
枚举值
ok 
snapshot_busy 
capacity_exceeded 
permission_denied 
task_faulted 
debugging_disabled 
invalid_source_location 
invalid_instruction 
invalid_symbol 
type_mismatch 
watch_plan_frozen 
invalid_argument 

在文件 debug_types.h 第 22 行定义.

◆ DebugEventKind

enum class plcopen::core::st::DebugEventKind : std::uint8_t
strong
枚举值
scan 
task 
pou 
sfc 
fb 
fault 

在文件 debug_types.h 第 85 行定义.

◆ DebugMode

enum class plcopen::core::st::DebugMode : std::uint8_t
strong
枚举值
disabled 
enabled 

在文件 debug_types.h 第 16 行定义.

◆ DebugRegionKind

enum class plcopen::core::st::DebugRegionKind : std::uint8_t
strong
枚举值
base 
sfc_transition 
sfc_action 

在文件 debug_types.h 第 95 行定义.

◆ DebugStopReason

enum class plcopen::core::st::DebugStopReason : std::uint8_t
strong
枚举值
none 
breakpoint 
step 
fault 

在文件 debug_types.h 第 204 行定义.

◆ DiagCode

enum class plcopen::core::st::DiagCode : std::uint16_t
strong
枚举值
lex_invalid_character 
lex_unterminated_comment 
lex_bad_numeric_literal 
lex_bad_time_literal 
lex_literal_overflow 
lex_bad_identifier 
parse_expected_token 
parse_unexpected_token 
parse_nesting_too_deep 
parse_expected_statement 
parse_expected_expression 
parse_expected_type 
sema_unknown_identifier 
sema_duplicate_identifier 
sema_type_mismatch 
sema_literal_out_of_range 
sema_not_assignable 
sema_division_by_zero_const 
sema_for_control_assigned 
sema_for_step_zero_const 
sema_exit_outside_loop 
sema_unknown_fb_pin 
sema_pin_not_input 
sema_pin_not_output 
sema_not_const_expr 
sema_case_label_duplicate 
sema_case_label_range_invalid 
sema_not_fb_instance 
sema_operand_type_invalid 
sema_ambiguous_literal 
sema_range_violation 
sema_index_out_of_range 
sema_invalid_array_bounds 
sema_recursive_type 
sema_string_capacity_exceeded 
sema_invalid_string_literal 
date_time_range_violation 
sema_alias_violation 
sema_inout_requires_lvalue 
sema_missing_argument 
sema_duplicate_argument 
sema_call_form_mixed 
sema_duplicate_pou 
sema_external_required 
sema_external_not_unique 
sema_fb_instance_required 
sema_standard_name_conflict 
sema_recursive_pou 
sema_no_matching_overload 
sema_ambiguous_overload 
sema_invalid_argument 
sema_process_image_overlap 
sema_task_interval_invalid 
sema_task_phase_invalid 
sema_task_priority_invalid 
sema_program_duplicate_mapping 
warning_program_unmapped 
unsupported_l5_task_control 
sema_unsafe_sfc_network 
sema_sfc_transition_side_effect 
capacity_code 
capacity_variables 
capacity_fb_instances 
capacity_diagnostics 
capacity_stack 
capacity_types 
capacity_exceeded 
capacity_resources 
capacity_tasks 
capacity_program_mappings 
unsupported_l1 
unsupported_l2 
unsupported_l3 
unsupported_l4 
unsupported_l5 
unsupported_l6 
unsupported_l7 
unsupported_non_goal 
unsupported_l1b2_dynamic_array 
unsupported_l1b3_timezone 
unsupported_l2b_object_extension 

在文件 diag.h 第 15 行定义.

◆ ExprKind

enum class plcopen::core::st::ExprKind : std::uint8_t
strong
枚举值
literal_int 
literal_real 
literal_bool 
literal_time 
literal_typed 
literal_enum 
literal_string 
literal_wstring 
literal_date 
literal_tod 
literal_dt 
variable 
pin_read 
unary 
binary 
call 
aggregate_init 

在文件 ast.h 第 21 行定义.

◆ IncrementalStatus

enum class plcopen::core::st::IncrementalStatus : std::uint8_t
strong
枚举值
ok 

在文件 compile.h 第 768 行定义.

◆ InstanceState

enum class plcopen::core::st::InstanceState : std::uint8_t
strong
枚举值
idle 
running 
complete 
faulted 

在文件 vm.h 第 72 行定义.

◆ IntegerSign

enum class plcopen::core::st::IntegerSign : std::uint8_t
strong
枚举值
none 
signed_ 
unsigned_ 

在文件 type_desc.h 第 81 行定义.

◆ LanguageSymbolKind

enum class plcopen::core::st::LanguageSymbolKind : std::uint8_t
strong
枚举值
variable 
parameter 
function_ 
function_block 
program 
type 
standard_function 
standard_function_block 
field 
keyword 

在文件 language.h 第 48 行定义.

◆ Op

enum class plcopen::core::st::Op : std::uint8_t
strong
枚举值
halt 
push_const 
load_var 
store_var 
add_int 
sub_int 
mul_int 
div_int 
mod_int 
neg_int 
add_dint 
sub_dint 
mul_dint 
div_dint 
mod_dint 
neg_dint 
add_real 
sub_real 
mul_real 
div_real 
neg_real 
add_lreal 
sub_lreal 
mul_lreal 
div_lreal 
neg_lreal 
add_time 
sub_time 
and_bool 
or_bool 
xor_bool 
not_bool 
cmp_eq_i 
cmp_ne_i 
cmp_lt_i 
cmp_gt_i 
cmp_le_i 
cmp_ge_i 
cmp_eq_f 
cmp_ne_f 
cmp_lt_f 
cmp_gt_f 
cmp_le_f 
cmp_ge_f 
jmp 
jmp_if_false 
for_guard 
for_test 
for_step_int 
for_step_dint 
fb_store_in 
fb_store_object 
fb_call 
fb_load_out 
iarith 
cmp_u 
bit_and 
bit_or 
bit_xor 
bit_not 
time_scale 
power 
conv_wrap 
conv_i2d 
conv_u2d 
f_narrow 
conv_round 
conv_trunc 
conv_to_bool 
conv_f_to_bool 
check_range 
load_access 
store_access 
copy_bytes 
string_copy 
string_copy_const 
string_compare 
string_index 
check_unicode 
date_arith 
alias_guard 
string_length 
commit_outputs 
fb_load_object 
standard_scalar 
standard_string 
debug_probe 

在文件 bytecode.h 第 32 行定义.

◆ PinDirection

enum class plcopen::core::st::PinDirection : std::uint8_t
strong
枚举值
input 
output 
in_out 

在文件 binding_manifest.h 第 59 行定义.

◆ ProcessArea

enum class plcopen::core::st::ProcessArea : std::uint8_t
strong
枚举值
input 
output 
memory 

在文件 bytecode.h 第 157 行定义.

◆ ResourceFault

enum class plcopen::core::st::ResourceFault : std::uint8_t
strong
枚举值
none 
image_commit_failed 

在文件 tasking.h 第 130 行定义.

◆ ScanError

enum class plcopen::core::st::ScanError : std::uint8_t
strong
枚举值
ok 
not_loaded 
division_by_zero 
for_step_zero 
budget_exceeded 
invalid_bytecode 
conversion_invalid 
range_violation 
string_capacity_exceeded 
date_time_range_violation 
alias_violation 
invalid_argument 
paused 

在文件 vm.h 第 35 行定义.

◆ SfcEventKind

enum class plcopen::core::st::SfcEventKind : std::uint8_t
strong
枚举值
step_exit 
transition_fire 
step_enter 
qualifier_update 
action_execute 

在文件 bytecode.h 第 218 行定义.

◆ SfcQualifier

enum class plcopen::core::st::SfcQualifier : std::uint8_t
strong
枚举值
n 
s 
r 
l 
d 
p 
sd 
ds 
sl 

在文件 ast.h 第 252 行定义.

◆ SfcRunnerPhase

enum class plcopen::core::st::SfcRunnerPhase : std::uint8_t
strong
枚举值
none 
stage_vars 
base 
stage_active 
stage_firing 
stage_blocks 
stage_actions 
stage_direct 
transitions 
active_updates 
qualifier_blocks 
qualifier_actions 
actions 
trace_exits 
trace_transitions 
trace_enters 
trace_qualifiers 
trace_actions 
commit_vars 
commit_active 
commit_blocks 
commit_actions 
finish 

在文件 bytecode.h 第 344 行定义.

◆ SnapshotError

enum class plcopen::core::st::SnapshotError : std::uint8_t
strong
枚举值
ok 
invalid_argument 
capacity_exceeded 
malformed 
version_mismatch 
fingerprint_mismatch 

在文件 process_image.h 第 24 行定义.

◆ SnapshotKind

enum class plcopen::core::st::SnapshotKind : std::uint8_t
strong
枚举值
retain 
persistent 

在文件 process_image.h 第 18 行定义.

◆ StandardFunction

enum class plcopen::core::st::StandardFunction : std::uint8_t
strong
枚举值
abs 
sqrt 
ln 
log 
exp 
sin 
cos 
tan 
asin 
acos 
atan 
add 
sub 
mul 
div 
mod 
expt 
min 
max 
limit 
sel 
mux 
gt 
ge 
eq 
le 
lt 
ne 
shl 
shr 
rol 
ror 
len 
left 
right 
mid 
concat 
insert 
delete_ 
replace 
find 
add_time 
add_tod_time 
add_dt_time 
sub_time 
sub_date_date 
sub_tod_time 
sub_dt_dt 
multime 
divtime 
concat_date_tod 
count 

在文件 standard_functions.h 第 13 行定义.

◆ StmtKind

enum class plcopen::core::st::StmtKind : std::uint8_t
strong
枚举值
assign 
if_ 
case_ 
for_ 
while_ 
repeat 
fb_call 
output_commit 
exit_ 
continue_ 
return_ 
empty 

在文件 ast.h 第 106 行定义.

◆ TaskFault

enum class plcopen::core::st::TaskFault : std::uint8_t
strong
枚举值
none 
task_budget_exceeded 
task_wallclock_exceeded 
task_runtime_fault 

在文件 tasking.h 第 93 行定义.

◆ TaskFaultElementKind

enum class plcopen::core::st::TaskFaultElementKind : std::uint8_t
strong
枚举值
none 
transition 
action 

在文件 tasking.h 第 104 行定义.

◆ TaskKind

enum class plcopen::core::st::TaskKind : std::uint8_t
strong
枚举值
periodic 
event 

在文件 tasking.h 第 18 行定义.

◆ TaskState

enum class plcopen::core::st::TaskState : std::uint8_t
strong
枚举值
idle 
running 
paused 
faulted 

在文件 tasking.h 第 85 行定义.

◆ TokenKind

enum class plcopen::core::st::TokenKind : std::uint8_t
strong
枚举值
end_of_input 
error 
identifier 
int_literal 
real_literal 
time_literal 
bool_literal 
typed_literal 
string_literal 
wstring_literal 
date_literal 
tod_literal 
dt_literal 
located_address 
assign 
colon 
semicolon 
comma 
dot 
dotdot 
hash 
lparen 
rparen 
lbracket 
rbracket 
plus 
minus 
star 
star_star 
slash 
ampersand 
equal 
not_equal 
less 
greater 
less_equal 
greater_equal 
kw_program 
kw_end_program 
kw_var 
kw_end_var 
kw_if 
kw_then 
kw_elsif 
kw_else 
kw_end_if 
kw_case 
kw_of 
kw_end_case 
kw_for 
kw_to 
kw_by 
kw_do 
kw_end_for 
kw_while 
kw_end_while 
kw_repeat 
kw_until 
kw_end_repeat 
kw_exit 
kw_continue 
kw_return 
kw_and 
kw_or 
kw_xor 
kw_not 
kw_mod 
kw_sfc 
kw_end_sfc 
kw_initial_step 
kw_step 
kw_end_step 
kw_transition 
kw_end_transition 
kw_from 
kw_action 
kw_end_action 
kw_simultaneous 
kw_terminal 
kw_constant 
kw_retain 
kw_persistent 
kw_at 
kw_type 
kw_end_type 
kw_array 
kw_struct 
kw_end_struct 
kw_bool 
kw_int 
kw_dint 
kw_real 
kw_lreal 
kw_time 
kw_sint 
kw_lint 
kw_usint 
kw_uint 
kw_udint 
kw_ulint 
kw_byte 
kw_word 
kw_dword 
kw_lword 
kw_char 
kw_wchar 
kw_string 
kw_wstring 
kw_date 
kw_tod 
kw_dt 
unsupported_keyword 

在文件 token.h 第 11 行定义.

◆ Type

enum class plcopen::core::st::Type : std::uint8_t
strong
枚举值
bool_ 
int_ 
dint 
real 
lreal 
time 
sint 
lint 
usint 
uint_ 
udint 
ulint 
byte_ 
word 
dword 
lword 
axis_ref 
char_ 
wchar 
string_ 
wstring 
date 
tod 
dt 
group_ref 

在文件 types.h 第 19 行定义.

◆ TypeError

enum class plcopen::core::st::TypeError : std::uint8_t
strong
枚举值
ok 
invalid_type 
invalid_name 
duplicate_type 
duplicate_member 
invalid_integer_base 
integer_sign_mismatch 
value_out_of_range 
invalid_bounds 
invalid_dimensions 
invalid_capacity 
recursive_type 
size_overflow 
not_found 

在文件 type_desc.h 第 63 行定义.

◆ TypeKind

enum class plcopen::core::st::TypeKind : std::uint8_t
strong
枚举值
elementary 
enum_ 
subrange 
array 
struct_ 
string 
wstring 
date 
tod 
dt 
ref 

在文件 type_desc.h 第 48 行定义.

◆ UnaryOp

enum class plcopen::core::st::UnaryOp : std::uint8_t
strong
枚举值
negate 
logical_not 

在文件 ast.h 第 55 行定义.

◆ UserTypeKind

enum class plcopen::core::st::UserTypeKind : std::uint8_t
strong
枚举值
enum_ 
subrange 
array 
struct_ 

在文件 ast.h 第 207 行定义.

◆ WcetBudgetRule

enum class plcopen::core::st::WcetBudgetRule : std::uint8_t
strong
枚举值
unreviewed 
fixed_one 
string_capacity 
object_size 
standard_function 
output_count 

在文件 wcet.h 第 16 行定义.

◆ WcetTimingClass

enum class plcopen::core::st::WcetTimingClass : std::uint8_t
strong
枚举值
fixed 
linear_bytes 
standard_function 
native_fb 
count 

在文件 wcet.h 第 26 行定义.

函数说明

◆ binding_dispatcher()

const BindingDispatcher * plcopen::core::st::binding_dispatcher ( BindingFbId id)
inlinenoexcept

在文件 binding_registry.h 第 175 行定义.

◆ binding_fb_registered()

bool plcopen::core::st::binding_fb_registered ( BindingFbId id)
inlinenoexcept

在文件 binding_registry.h 第 214 行定义.

◆ binding_manifest()

const BindingManifest & plcopen::core::st::binding_manifest ( )
inline

在文件 binding_manifest.h 第 309 行定义.

◆ binding_pin_registered()

bool plcopen::core::st::binding_pin_registered ( BindingFbId fb_id,
BindingPinId pin_id )
inlinenoexcept

在文件 binding_registry.h 第 184 行定义.

◆ binding_storage_bytes()

std::size_t plcopen::core::st::binding_storage_bytes ( BindingStorageKind kind)
constexpr

在文件 binding_storage.h 第 98 行定义.

◆ binding_storage_kind()

BindingStorageKind plcopen::core::st::binding_storage_kind ( Type type,
TypeId type_id )
constexpr

在文件 binding_storage.h 第 63 行定义.

◆ compile()

CompileResult plcopen::core::st::compile ( std::string_view source,
const CompileOptions & options = CompileOptions{} )
inline

在文件 compile.h 第 602 行定义.

◆ compile_single_program()

CompileResult plcopen::core::st::compile_single_program ( std::string_view source,
const CompileOptions & options = CompileOptions{} )
inline

在文件 compile.h 第 228 行定义.

◆ compile_single_program_impl()

CompileResult plcopen::core::st::compile_single_program_impl ( std::string_view source,
const CompileOptions & options,
bool trusted_debug_provenance )
inline

在文件 compile.h 第 154 行定义.

◆ compile_without_sfc()

CompileResult plcopen::core::st::compile_without_sfc ( std::string_view source,
const CompileOptions & options = CompileOptions{} )
inline

在文件 compile.h 第 242 行定义.

◆ conv_kind()

ConvKind plcopen::core::st::conv_kind ( Type from,
Type to )
constexpr

在文件 conv.h 第 42 行定义.

◆ fb_align()

std::size_t plcopen::core::st::fb_align ( FbType type)
constexprnoexcept

在文件 pins.h 第 66 行定义.

◆ fb_cycle()

void plcopen::core::st::fb_cycle ( FbType type,
unsigned char * storage,
std::int64_t task_period_ns = 0 )
inline

在文件 bind.h 第 100 行定义.

◆ fb_destroy()

void plcopen::core::st::fb_destroy ( FbType type,
unsigned char * storage )
inlinenoexcept

在文件 bind.h 第 36 行定义.

◆ fb_init()

void plcopen::core::st::fb_init ( FbType type,
unsigned char * storage,
std::int64_t task_period_ns )
inline

在文件 bind.h 第 15 行定义.

◆ fb_load_object()

bool plcopen::core::st::fb_load_object ( FbType type,
const unsigned char * storage,
std::uint8_t pin,
unsigned char * bytes,
TypeId type_id,
std::uint32_t size )
inlinenoexcept

在文件 bind.h 第 61 行定义.

◆ fb_load_scalar()

bool plcopen::core::st::fb_load_scalar ( FbType type,
const unsigned char * storage,
std::uint16_t pin,
std::uint64_t & bits )
inlinenoexcept

在文件 bind.h 第 47 行定义.

◆ fb_load_sequence()

bool plcopen::core::st::fb_load_sequence ( FbType type,
const unsigned char * storage,
std::uint16_t pin,
generated::StBindingNativeSequenceValue & value )
inlinenoexcept

在文件 bind.h 第 76 行定义.

◆ fb_load_tagged_reference()

bool plcopen::core::st::fb_load_tagged_reference ( FbType type,
const unsigned char * storage,
std::uint16_t pin,
TypeId type_id,
generated::StBindingNativeTaggedReferenceValue & value )
inlinenoexcept

在文件 bind.h 第 91 行定义.

◆ fb_size()

std::size_t plcopen::core::st::fb_size ( FbType type)
constexprnoexcept

在文件 pins.h 第 61 行定义.

◆ fb_store_object()

bool plcopen::core::st::fb_store_object ( FbType type,
unsigned char * storage,
std::uint8_t pin,
const unsigned char * bytes,
TypeId type_id,
std::uint32_t size )
inlinenoexcept

在文件 bind.h 第 53 行定义.

◆ fb_store_scalar()

bool plcopen::core::st::fb_store_scalar ( FbType type,
unsigned char * storage,
std::uint16_t pin,
std::uint64_t bits )
inlinenoexcept

在文件 bind.h 第 41 行定义.

◆ fb_store_sequence()

bool plcopen::core::st::fb_store_sequence ( FbType type,
unsigned char * storage,
std::uint16_t pin,
generated::StBindingNativeSequenceValue value )
inlinenoexcept

在文件 bind.h 第 69 行定义.

◆ fb_store_tagged_reference()

bool plcopen::core::st::fb_store_tagged_reference ( FbType type,
unsigned char * storage,
std::uint16_t pin,
TypeId type_id,
generated::StBindingNativeTaggedReferenceValue value )
inlinenoexcept

在文件 bind.h 第 83 行定义.

◆ finalize_debug_instruction_ids()

void plcopen::core::st::finalize_debug_instruction_ids ( Program & artifact)
inline

在文件 compile.h 第 134 行定义.

◆ finalize_debug_symbols()

void plcopen::core::st::finalize_debug_symbols ( Program & artifact)
inline

在文件 compile.h 第 75 行定义.

◆ install_binding_types()

TypeError plcopen::core::st::install_binding_types ( TypeTable & types)
inline

在文件 st_binding_types.h 第 420 行定义.

◆ is_bitstring()

bool plcopen::core::st::is_bitstring ( Type type)
constexpr

在文件 types.h 第 129 行定义.

◆ is_integer()

bool plcopen::core::st::is_integer ( Type type)
constexpr

在文件 types.h 第 124 行定义.

◆ is_real_family()

bool plcopen::core::st::is_real_family ( Type type)
constexpr

在文件 types.h 第 135 行定义.

◆ is_reserved_standard_function()

bool plcopen::core::st::is_reserved_standard_function ( std::string_view lower)
inline

在文件 standard_names.h 第 11 行定义.

◆ is_signed_int()

bool plcopen::core::st::is_signed_int ( Type type)
constexpr

在文件 types.h 第 112 行定义.

◆ is_unsigned_int()

bool plcopen::core::st::is_unsigned_int ( Type type)
constexpr

在文件 types.h 第 118 行定义.

◆ language_ascii_iequals()

bool plcopen::core::st::language_ascii_iequals ( std::string_view left,
std::string_view right )
inline

在文件 language.h 第 108 行定义.

◆ language_ascii_lower()

char plcopen::core::st::language_ascii_lower ( char value)
inline

在文件 language.h 第 103 行定义.

◆ make_wcet_report()

WcetReport plcopen::core::st::make_wcet_report ( const Program & program)
inlinenoexcept

在文件 wcet.h 第 203 行定义.

◆ operator!=() [1/4]

bool plcopen::core::st::operator!= ( const InstructionId & left,
const InstructionId & right )
constexprnoexcept

在文件 debug_types.h 第 120 行定义.

◆ operator!=() [2/4]

bool plcopen::core::st::operator!= ( const LanguagePosition & left,
const LanguagePosition & right )
inline

在文件 language.h 第 37 行定义.

◆ operator!=() [3/4]

bool plcopen::core::st::operator!= ( IntegerValue left,
IntegerValue right )
constexpr

在文件 type_desc.h 第 116 行定义.

◆ operator!=() [4/4]

bool plcopen::core::st::operator!= ( SymbolId left,
SymbolId right )
constexprnoexcept

在文件 debug_types.h 第 48 行定义.

◆ operator==() [1/4]

bool plcopen::core::st::operator== ( const InstructionId & left,
const InstructionId & right )
constexprnoexcept

在文件 debug_types.h 第 111 行定义.

◆ operator==() [2/4]

bool plcopen::core::st::operator== ( const LanguagePosition & left,
const LanguagePosition & right )
inline

在文件 language.h 第 32 行定义.

◆ operator==() [3/4]

bool plcopen::core::st::operator== ( IntegerValue left,
IntegerValue right )
constexpr

在文件 type_desc.h 第 109 行定义.

◆ operator==() [4/4]

bool plcopen::core::st::operator== ( SymbolId left,
SymbolId right )
constexprnoexcept

在文件 debug_types.h 第 43 行定义.

◆ pin_accepts_input()

bool plcopen::core::st::pin_accepts_input ( const PinDesc & pin)
constexprnoexcept

在文件 pins.h 第 36 行定义.

◆ pin_produces_output()

bool plcopen::core::st::pin_produces_output ( const PinDesc & pin)
constexprnoexcept

在文件 pins.h 第 42 行定义.

◆ pin_table()

PinTable plcopen::core::st::pin_table ( FbType type)
constexprnoexcept

在文件 pins.h 第 56 行定义.

◆ pin_type_id()

TypeId plcopen::core::st::pin_type_id ( const PinDesc & pin)
constexprnoexcept

在文件 pins.h 第 31 行定义.

◆ resolve_conversion()

bool plcopen::core::st::resolve_conversion ( std::string_view lower,
ConvDesc & desc )
inline

在文件 conv.h 第 118 行定义.

◆ resolve_standard_function()

bool plcopen::core::st::resolve_standard_function ( std::string_view lower,
StandardFunction & function )
inline

在文件 standard_functions.h 第 63 行定义.

◆ saturating_cost_add()

std::uint32_t plcopen::core::st::saturating_cost_add ( std::uint32_t left,
std::uint32_t right )
inlineconstexpr

在文件 standard_functions.h 第 83 行定义.

◆ saturating_cost_mul()

std::uint32_t plcopen::core::st::saturating_cost_mul ( std::uint32_t left,
std::uint32_t right )
inlineconstexpr

在文件 standard_functions.h 第 90 行定义.

◆ stable_symbol_id()

SymbolId plcopen::core::st::stable_symbol_id ( std::string_view qualified_name)
inlinenoexcept

在文件 debug_types.h 第 53 行定义.

◆ standard_function_manifest()

const auto & plcopen::core::st::standard_function_manifest ( )
inlineconstexpr

在文件 standard_functions.h 第 47 行定义.

◆ standard_function_manifest_dump()

std::string plcopen::core::st::standard_function_manifest_dump ( )
inline

在文件 standard_functions.h 第 52 行定义.

◆ standard_string_cost()

std::uint32_t plcopen::core::st::standard_string_cost ( StandardFunction function,
const std::uint32_t * capacities,
std::uint8_t count,
std::uint32_t destination_capacity )
inlineconstexpr

在文件 standard_functions.h 第 98 行定义.

◆ to_string() [1/5]

const char * plcopen::core::st::to_string ( ConvKind kind)
constexpr

在文件 conv.h 第 90 行定义.

◆ to_string() [2/5]

const char * plcopen::core::st::to_string ( DiagCode code)
constexpr

在文件 diag.h 第 117 行定义.

◆ to_string() [3/5]

const char * plcopen::core::st::to_string ( FbType type)
constexpr

在文件 types.h 第 334 行定义.

◆ to_string() [4/5]

const char * plcopen::core::st::to_string ( ScanError error)
constexpr

在文件 vm.h 第 52 行定义.

◆ to_string() [5/5]

const char * plcopen::core::st::to_string ( Type type)
constexpr

在文件 types.h 第 302 行定义.

◆ type_from_id()

Type plcopen::core::st::type_from_id ( TypeId id)
constexpr

在文件 types.h 第 84 行定义.

◆ type_id()

TypeId plcopen::core::st::type_id ( Type type)
constexpr

在文件 types.h 第 52 行定义.

◆ wcet_budget_rule_name()

const char * plcopen::core::st::wcet_budget_rule_name ( WcetBudgetRule rule)
constexprnoexcept

在文件 wcet.h 第 86 行定义.

◆ wcet_opcode_cost()

WcetOpcodeCost plcopen::core::st::wcet_opcode_cost ( Op op)
constexprnoexcept

在文件 wcet.h 第 52 行定义.

◆ wcet_timing_class_name()

const char * plcopen::core::st::wcet_timing_class_name ( WcetTimingClass timing)
constexprnoexcept

在文件 wcet.h 第 98 行定义.

◆ widens_to()

bool plcopen::core::st::widens_to ( Type from,
Type to )
constexpr

在文件 types.h 第 161 行定义.

◆ width_bits()

int plcopen::core::st::width_bits ( Type type)
constexpr

在文件 types.h 第 140 行定义.

变量说明

◆ first_load_type_id

TypeId plcopen::core::st::first_load_type_id = 65536
inlineconstexpr

在文件 type_desc.h 第 20 行定义.

◆ invalid_artifact_index

std::uint32_t plcopen::core::st::invalid_artifact_index
inlineconstexpr
初始值:
=
std::numeric_limits<std::uint32_t>::max()

在文件 tasking.h 第 101 行定义.

◆ invalid_type_id

TypeId plcopen::core::st::invalid_type_id = 0
inlineconstexpr

在文件 type_desc.h 第 19 行定义.

◆ kBytecodeFormatVersion

std::uint32_t plcopen::core::st::kBytecodeFormatVersion = 6
inlineconstexpr

在文件 bytecode.h 第 25 行定义.

◆ kCanonicalManifestVersion

std::uint32_t plcopen::core::st::kCanonicalManifestVersion = 2
inlineconstexpr

在文件 bytecode.h 第 26 行定义.

◆ kConvTypeCount

int plcopen::core::st::kConvTypeCount = 15
inlineconstexpr

在文件 conv.h 第 39 行定义.

◆ kConvTypes

◆ kFbAlign

std::size_t plcopen::core::st::kFbAlign = 8
inlineconstexpr

在文件 pins.h 第 73 行定义.

◆ kFbTypeCount

int plcopen::core::st::kFbTypeCount = static_cast<int>(FbType::count)
inlineconstexpr

在文件 types.h 第 188 行定义.

◆ kMaxAxisBindings

std::uint16_t plcopen::core::st::kMaxAxisBindings = 64
inlineconstexpr

在文件 binding.h 第 26 行定义.

◆ kMaxDebugSfcSteps

std::size_t plcopen::core::st::kMaxDebugSfcSteps = 256
inlineconstexpr

在文件 debug_types.h 第 254 行定义.

◆ kMaxDebugStackFrames

std::size_t plcopen::core::st::kMaxDebugStackFrames = 64
inlineconstexpr

在文件 debug_types.h 第 253 行定义.

◆ kMaxFbInstances

std::uint16_t plcopen::core::st::kMaxFbInstances = 1024
inlineconstexpr

在文件 binding.h 第 28 行定义.

◆ kMaxGroupBindings

std::uint16_t plcopen::core::st::kMaxGroupBindings = 16
inlineconstexpr

在文件 binding.h 第 27 行定义.

◆ kMaxProfileSegments

std::size_t plcopen::core::st::kMaxProfileSegments = 8
inlineconstexpr

在文件 binding.h 第 50 行定义.

◆ kMaxTableBindings

std::size_t plcopen::core::st::kMaxTableBindings = 32
inlineconstexpr

在文件 binding.h 第 49 行定义.

◆ kNoExpr

ExprIndex plcopen::core::st::kNoExpr = -1
inlineconstexpr

在文件 ast.h 第 19 行定义.

◆ kStandardFunctionManifest

std::array<StandardFunctionManifestEntry, 51> plcopen::core::st::kStandardFunctionManifest
inlineconstexpr
初始值:
= {{
{"ABS", true}, {"SQRT", true}, {"LN", true}, {"LOG", true},
{"EXP", true}, {"SIN", true}, {"COS", true}, {"TAN", true},
{"ASIN", true}, {"ACOS", true}, {"ATAN", true}, {"ADD", true},
{"SUB", true}, {"MUL", true}, {"DIV", true}, {"MOD", true},
{"EXPT", true}, {"MIN", true}, {"MAX", true}, {"LIMIT", true},
{"SEL", true}, {"MUX", true}, {"GT", true}, {"GE", true},
{"EQ", true}, {"LE", true}, {"LT", true}, {"NE", true},
{"SHL", true}, {"SHR", true}, {"ROL", true}, {"ROR", true},
{"LEN", true}, {"LEFT", true}, {"RIGHT", true}, {"MID", true},
{"CONCAT", true}, {"INSERT", true}, {"DELETE", true},
{"REPLACE", true}, {"FIND", true}, {"ADD_TIME", true},
{"ADD_TOD_TIME", true}, {"ADD_DT_TIME", true}, {"SUB_TIME", true},
{"SUB_DATE_DATE", true}, {"SUB_TOD_TIME", true}, {"SUB_DT_DT", true},
{"MULTIME", true}, {"DIVTIME", true}, {"CONCAT_DATE_TOD", true},
}}

在文件 standard_functions.h 第 30 行定义.

◆ kTypeCount

int plcopen::core::st::kTypeCount = 25
inlineconstexpr

在文件 types.h 第 50 行定义.

◆ kWcetReviewedBytecodeFormatVersion

std::uint32_t plcopen::core::st::kWcetReviewedBytecodeFormatVersion = 6
inlineconstexpr

在文件 wcet.h 第 41 行定义.

◆ kWcetReviewedOpcodeCount

std::size_t plcopen::core::st::kWcetReviewedOpcodeCount = 87
inlineconstexpr

在文件 wcet.h 第 42 行定义.

◆ kWcetTimingClassCount

std::size_t plcopen::core::st::kWcetTimingClassCount
inlineconstexpr
初始值:

在文件 wcet.h 第 43 行定义.