stdlib/gridView source ↗
grid
52 items · generated by scribe fromstdlib/grid.fd· synced 2026-11-15
Contents
- LN_XCBR: (const)
- LN_XSWI: (const)
- LN_MMXU: (const)
- LN_PTUV: (const)
- LN_PTOC: (const)
- LN_PDIS: (const)
- LN_RREC: (const)
- LN_RBRF: (const)
- LN_CSWI: (const)
- LN_CILO: (const)
- LN_CSWI2: (const)
- iec61850_ln_name (function)
- CDC_SPS: (const)
- CDC_DPS: (const)
- CDC_MV: (const)
- CDC_ASG: (const)
- CDC_ING: (const)
- CDC_ENG: (const)
- CDC_SPC: (const)
- CDC_DPC: (const)
- CDC_INC: (const)
- iec61850_cdc_name (function)
- XCBR (struct)
- iec61850_xcbr_new (function)
- iec61850_xcbr_set_pos (function)
- iec61850_xcbr_pos_name (function)
- iec61850_xcbr_is_closed (function)
- iec61850_xcbr_is_open (function)
- iec61850_xcbr_set_health (function)
- iec61850_xcbr_health_name (function)
- MMXU (struct)
- iec61850_mmxu_new (function)
- iec61850_mmxu_set_voltage (function)
- iec61850_mmxu_set_current (function)
- iec61850_mmxu_set_power (function)
- iec61850_mmxu_apparent_power (function)
- iec61850_mmxu_total_power (function)
- GOOSEMessage (struct)
- iec61850_goose_new (function)
- iec61850_goose_add_data (function)
- iec61850_goose_update_data (function)
- iec61850_goose_get_data (function)
- iec61850_goose_data_count (function)
- iec61850_goose_serialize (function)
- iec61850_ref (function)
- iec61850_dataset_ref (function)
- iec61850_control_ref (function)
- PTOC (struct)
- iec61850_ptoc_new (function)
- iec61850_ptoc_check (function)
- iec61850_ptoc_set_inverse (function)
- iec61850_ptoc_trip_time (function)
LN_XCBR:
pub const LN_XCBR: i64 = 0; // Circuit BreakerDefined at line 24
LN_XSWI:
pub const LN_XSWI: i64 = 1; // Switch / DisconnectorDefined at line 25
LN_MMXU:
pub const LN_MMXU: i64 = 2; // Measurement (voltage, current, power)Defined at line 26
LN_PTUV:
pub const LN_PTUV: i64 = 3; // Voltage Time ProtectionDefined at line 27
LN_PTOC:
pub const LN_PTOC: i64 = 4; // Overcurrent ProtectionDefined at line 28
LN_PDIS:
pub const LN_PDIS: i64 = 5; // Distance ProtectionDefined at line 29
LN_RREC:
pub const LN_RREC: i64 = 6; // Disturbance RecorderDefined at line 30
LN_RBRF:
pub const LN_RBRF: i64 = 7; // Breaker FailureDefined at line 31
LN_CSWI:
pub const LN_CSWI: i64 = 8; // Control SwitchDefined at line 32
LN_CILO:
pub const LN_CILO: i64 = 9; // InterlockingDefined at line 33
LN_CSWI2:
pub const LN_CSWI2: i64 = 10; // Control Switch (alternate)Defined at line 34
iec61850_ln_name
Get logical node name.
pub fn iec61850_ln_name(ln_type: i64) -> str {Parameters:
ln_type:i64
Returns: str
Defined at line 37
CDC_SPS:
pub const CDC_SPS: i64 = 0; // Single Point StatusDefined at line 73
CDC_DPS:
pub const CDC_DPS: i64 = 1; // Double Point StatusDefined at line 74
CDC_MV:
pub const CDC_MV: i64 = 2; // Measured ValueDefined at line 75
CDC_ASG:
pub const CDC_ASG: i64 = 3; // Analog SettingDefined at line 76
CDC_ING:
pub const CDC_ING: i64 = 4; // Integer SettingDefined at line 77
CDC_ENG:
pub const CDC_ENG: i64 = 5; // Enumerated SettingDefined at line 78
CDC_SPC:
pub const CDC_SPC: i64 = 6; // Single Point ControllableDefined at line 79
CDC_DPC:
pub const CDC_DPC: i64 = 7; // Double Point ControllableDefined at line 80
CDC_INC:
pub const CDC_INC: i64 = 8; // Integer ControllableDefined at line 81
iec61850_cdc_name
Get CDC name.
pub fn iec61850_cdc_name(cdc: i64) -> str {Parameters:
cdc:i64
Returns: str
Defined at line 84
XCBR
A circuit breaker logical node.
pub struct XCBR {Fields:
| Name | Type |
|---|---|
name | str |
ln_type | i64 |
position | i64 |
health | i64 |
capable_of_op | bool |
op_cnt | i64 |
rated_current | i64 |
Defined at line 120
iec61850_xcbr_new
Create a new circuit breaker.
pub fn iec61850_xcbr_new(name: str, rated_current: i64) -> XCBR {Parameters:
name:strrated_current:i64
Returns: XCBR
Defined at line 135
iec61850_xcbr_set_pos
Set breaker position (0=open, 1=closed).
pub fn iec61850_xcbr_set_pos(breaker: & mut XCBR, pos: i64) -> void {Parameters:
breaker:& mut XCBRpos:i64
Returns: void
Defined at line 144
iec61850_xcbr_pos_name
Get breaker position name.
pub fn iec61850_xcbr_pos_name(breaker: XCBR) -> str {Parameters:
breaker:XCBR
Returns: str
Defined at line 155
iec61850_xcbr_is_closed
Check if breaker is closed.
pub fn iec61850_xcbr_is_closed(breaker: XCBR) -> bool {Parameters:
breaker:XCBR
Returns: bool
Defined at line 166
iec61850_xcbr_is_open
Check if breaker is open.
pub fn iec61850_xcbr_is_open(breaker: XCBR) -> bool {Parameters:
breaker:XCBR
Returns: bool
Defined at line 171
iec61850_xcbr_set_health
Set breaker health.
pub fn iec61850_xcbr_set_health(breaker: & mut XCBR, health: i64) -> void {Parameters:
breaker:& mut XCBRhealth:i64
Returns: void
Defined at line 176
iec61850_xcbr_health_name
Get breaker health name.
pub fn iec61850_xcbr_health_name(breaker: XCBR) -> str {Parameters:
breaker:XCBR
Returns: str
Defined at line 184
MMXU
A measurement logical node.
pub struct MMXU {Fields:
| Name | Type |
|---|---|
name | str |
ln_type | i64 |
voltage_a | f64 |
voltage_b | f64 |
voltage_c | f64 |
current_a | f64 |
current_b | f64 |
current_c | f64 |
active_power | f64 |
reactive_power | f64 |
power_factor | f64 |
frequency | f64 |
Defined at line 199
iec61850_mmxu_new
Create a new measurement node.
pub fn iec61850_mmxu_new(name: str) -> MMXU {Parameters:
name:str
Returns: MMXU
Defined at line 224
iec61850_mmxu_set_voltage
Set three-phase voltage measurements.
pub fn iec61850_mmxu_set_voltage(mmxu: & mut MMXU, va: f64, vb: f64, vc: f64) -> void {Parameters:
mmxu:& mut MMXUva:f64vb:f64vc:f64
Returns: void
Defined at line 231
iec61850_mmxu_set_current
Set three-phase current measurements.
pub fn iec61850_mmxu_set_current(mmxu: & mut MMXU, ia: f64, ib: f64, ic: f64) -> void {Parameters:
mmxu:& mut MMXUia:f64ib:f64ic:f64
Returns: void
Defined at line 238
iec61850_mmxu_set_power
Set power measurements.
pub fn iec61850_mmxu_set_power(mmxu: & mut MMXU, active: f64, reactive: f64, pf: f64) -> void {Parameters:
mmxu:& mut MMXUactive:f64reactive:f64pf:f64
Returns: void
Defined at line 245
iec61850_mmxu_apparent_power
Calculate apparent power: sqrt(P² + Q²).
pub fn iec61850_mmxu_apparent_power(mmxu: MMXU) -> f64 {Parameters:
mmxu:MMXU
Returns: f64
Defined at line 252
iec61850_mmxu_total_power
Calculate three-phase total active power: P = VaIa + VbIb + Vc*Ic (approx).
pub fn iec61850_mmxu_total_power(mmxu: MMXU) -> f64 {Parameters:
mmxu:MMXU
Returns: f64
Defined at line 257
GOOSEMessage
A GOOSE message.
pub struct GOOSEMessage {Fields:
| Name | Type |
|---|---|
app_id | i64 |
goose_ref | str |
seq_num | i64 |
time | i64 |
st_num | i64 |
data | Vec<i64> |
Defined at line 268
iec61850_goose_new
Create a new GOOSE message.
pub fn iec61850_goose_new(app_id: i64, ref: str) -> GOOSEMessage {Parameters:
app_id:i64ref:str
Returns: GOOSEMessage
Defined at line 282
iec61850_goose_add_data
Add a data value to the GOOSE message.
pub fn iec61850_goose_add_data(msg: & mut GOOSEMessage, value: i64) -> void {Parameters:
msg:& mut GOOSEMessagevalue:i64
Returns: void
Defined at line 289
iec61850_goose_update_data
Update a data value in the GOOSE message (increments seq_num).
pub fn iec61850_goose_update_data(msg: & mut GOOSEMessage, index: i64, value: i64) -> void {Parameters:
msg:& mut GOOSEMessageindex:i64value:i64
Returns: void
Defined at line 296
iec61850_goose_get_data
Get a data value from the GOOSE message.
pub fn iec61850_goose_get_data(msg: GOOSEMessage, index: i64) -> i64 {Parameters:
msg:GOOSEMessageindex:i64
Returns: i64
Defined at line 305
iec61850_goose_data_count
Get the number of data values.
pub fn iec61850_goose_data_count(msg: GOOSEMessage) -> i64 {Parameters:
msg:GOOSEMessage
Returns: i64
Defined at line 313
iec61850_goose_serialize
Serialize GOOSE message to a Vec of bytes (simplified format).
pub fn iec61850_goose_serialize(msg: GOOSEMessage) -> Vec<i64> {Parameters:
msg:GOOSEMessage
Returns: Vec<i64>
Defined at line 318
iec61850_ref
Build an IEC 61850 object reference.
pub fn iec61850_ref(ld: str, ln: str, field: str) -> str {Parameters:
ld:strln:strfield:str
Returns: str
Defined at line 356
iec61850_dataset_ref
Build a dataset reference.
pub fn iec61850_dataset_ref(ld: str, ds_name: str) -> str {Parameters:
ld:strds_name:str
Returns: str
Defined at line 361
iec61850_control_ref
Build a control object reference.
pub fn iec61850_control_ref(ld: str, ln: str, co_name: str) -> str {Parameters:
ld:strln:strco_name:str
Returns: str
Defined at line 366
PTOC
Overcurrent protection settings.
pub struct PTOC {Fields:
| Name | Type |
|---|---|
name | str |
ln_type | i64 |
pickup_current | f64 |
time_delay | f64 |
inverse_curve | bool |
tds | f64 |
tripped | bool |
Defined at line 373
iec61850_ptoc_new
Create a new overcurrent protection element.
pub fn iec61850_ptoc_new(name: str, pickup: f64, delay: f64) -> PTOC {Parameters:
name:strpickup:f64delay:f64
Returns: PTOC
Defined at line 388
iec61850_ptoc_check
Check if overcurrent condition is met.
pub fn iec61850_ptoc_check(ptoc: & mut PTOC, measured_current: f64) -> bool {Parameters:
ptoc:& mut PTOCmeasured_current:f64
Returns: bool
Defined at line 395
iec61850_ptoc_set_inverse
Set inverse time curve mode.
pub fn iec61850_ptoc_set_inverse(ptoc: & mut PTOC, tds: f64) -> void {Parameters:
ptoc:& mut PTOCtds:f64
Returns: void
Defined at line 404
iec61850_ptoc_trip_time
Calculate trip time for inverse time curve (IEC 60255 standard). Trip time = TDS * (A / ((I/Is)^p - 1) + B) For standard inverse: A=0.14, p=0.02, B=0
pub fn iec61850_ptoc_trip_time(ptoc: PTOC, measured_current: f64) -> f64 {Parameters:
ptoc:PTOCmeasured_current:f64
Returns: f64
Defined at line 412
Generated by scribe, the Fides documentation generator