Skip to main content

Module dbd_generated

Module dbd_generated 

Source
Expand description

Record field tables generated from the vendored EPICS .dbd record declarations — the machine-readable spec every FieldDesc used to be hand-copied from.

@generated by tools/dbd-codegen from crates/std-rs/dbd/*.dbd. DO NOT EDIT. Re-run cargo run -p dbd-codegen -- --write after changing a vendored .dbd. Drift is caught by dbd_codegen::tests::generated_files_are_not_stale, which cargo nextest run executes — locally and in CI — so a stale table is a failing test, not a comment asking you to remember.

What is not here, and why:

  • dbCommon fields. The port models them once in CommonFields, so splicing them into every record table would double-declare them. Base’s table emits them separately as DB_COMMON_FIELDS so the two models can be reconciled (and so a dbCommon addition is a diff, not a silent gap).
  • DBF_NOACCESS fields (RSET, DPVT, MLOK, BPTR, PPN, …). These are C-internal pointers with no CA/PVA representation — C’s mapDBFToDBR sends them to DBR_NOACCESS and dbChannelCreate refuses a channel on them. A Rust port has no pointer to expose, so they are dropped rather than invented; the count is reported by the generator.

Statics§

EPID_FIELDS
recordtype(epid) — 49 CA-visible own fields from dbd/epidRecord.dbd (2 DBF_NOACCESS internals dropped).
MENU_EPID_FEEDBACK_MODE
menu(epidFeedbackMode)
MENU_EPID_FEEDBACK_STATE
menu(epidFeedbackState)
MENU_THROTTLE_DRVLC
menu(throttleDRVLC)
MENU_THROTTLE_DRVLS
menu(throttleDRVLS)
MENU_THROTTLE_OV
menu(throttleOV)
MENU_THROTTLE_STS
menu(throttleSTS)
MENU_THROTTLE_SYNC
menu(throttleSYNC)
MENU_THROTTLE_WAIT
menu(throttleWAIT)
MENU_TIMESTAMP_TST
menu(timestampTST)
RECORD_TYPES
Every record type a vendored .dbd declares, in .dbd name order.
THROTTLE_FIELDS
recordtype(throttle) — 21 CA-visible own fields from dbd/throttleRecord.dbd (1 DBF_NOACCESS internals dropped).
TIMESTAMP_FIELDS
recordtype(timestamp) — 4 CA-visible own fields from dbd/timestampRecord.dbd (0 DBF_NOACCESS internals dropped).

Functions§

menu_choices
Every menu() declared by a vendored .dbd, keyed by its EPICS name.
record_fields
The record-own field table for a record type name, or None for a type no vendored .dbd declares.