From 94b7c0685a7acebba8118d0545ba3798bc9cda3e Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 14 Aug 2017 10:03:35 -0500 Subject: [PATCH] fix(API): Remove flexray support Fixes #55, #47 --- nixnet/_props.py | 2694 +++++++-------------------------------- nixnet/_session/intf.py | 251 ---- nixnet/db/_cluster.py | 276 ---- nixnet/db/_ecu.py | 32 - nixnet/db/_frame.py | 76 -- nixnet/system/system.py | 6 - tests/test_system.py | 4 +- 7 files changed, 479 insertions(+), 2860 deletions(-) diff --git a/nixnet/_props.py b/nixnet/_props.py index 2f5b87e5..1a19b7a3 100644 --- a/nixnet/_props.py +++ b/nixnet/_props.py @@ -612,2732 +612,1308 @@ def set_session_intf_can_fd_iso_mode( ) -def get_session_intf_flex_ray_acc_start_rng( +def get_session_intf_lin_break_length( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_ACC_START_RNG, + _cconsts.NX_PROP_SESSION_INTF_LIN_BREAK_LENGTH, ) -def set_session_intf_flex_ray_acc_start_rng( +def set_session_intf_lin_break_length( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_ACC_START_RNG, + _cconsts.NX_PROP_SESSION_INTF_LIN_BREAK_LENGTH, value, ) -def get_session_intf_flex_ray_alw_hlt_clk( +def get_session_intf_lin_master( ref, # type: int ): # type: (...) -> bool return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_ALW_HLT_CLK, + _cconsts.NX_PROP_SESSION_INTF_LIN_MASTER, ) -def set_session_intf_flex_ray_alw_hlt_clk( +def set_session_intf_lin_master( ref, # type: int value, # type: bool ): # type: (...) -> None _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_ALW_HLT_CLK, + _cconsts.NX_PROP_SESSION_INTF_LIN_MASTER, + value, + ) + + +def get_session_intf_lin_sched_names( + ref, # type: int +): + # type: (...) -> typing.Iterable[typing.Text] + return _cprops.get_session_string_array( + ref, + _cconsts.NX_PROP_SESSION_INTF_LIN_SCHED_NAMES, + ) + + +def set_session_intf_lin_sleep( + ref, # type: int + value, # type: int +): + # type: (...) -> None + _cprops.set_session_u32( + ref, + _cconsts.NX_PROP_SESSION_INTF_LIN_SLEEP, value, ) -def get_session_intf_flex_ray_alw_pass_act( +def get_session_intf_lin_term( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_ALW_PASS_ACT, + _cconsts.NX_PROP_SESSION_INTF_LIN_TERM, ) -def set_session_intf_flex_ray_alw_pass_act( +def set_session_intf_lin_term( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_ALW_PASS_ACT, + _cconsts.NX_PROP_SESSION_INTF_LIN_TERM, value, ) -def get_session_intf_flex_ray_auto_aslp_whn_stp( +def get_session_intf_lin_diag_p2min( ref, # type: int ): - # type: (...) -> bool - return _cprops.get_session_bool( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_AUTO_ASLP_WHN_STP, + _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_P_2MIN, ) -def set_session_intf_flex_ray_auto_aslp_whn_stp( +def set_session_intf_lin_diag_p2min( ref, # type: int - value, # type: bool + value, # type: float ): # type: (...) -> None - _cprops.set_session_bool( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_AUTO_ASLP_WHN_STP, + _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_P_2MIN, value, ) -def get_session_intf_flex_ray_clst_drift_dmp( +def get_session_intf_lin_diag_stmin( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_CLST_DRIFT_DMP, + _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_S_TMIN, ) -def set_session_intf_flex_ray_clst_drift_dmp( +def set_session_intf_lin_diag_stmin( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_CLST_DRIFT_DMP, + _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_S_TMIN, value, ) -def get_session_intf_flex_ray_coldstart( +def get_session_intf_lin_alw_start_wo_bus_pwr( ref, # type: int ): # type: (...) -> bool return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_COLDSTART, + _cconsts.NX_PROP_SESSION_INTF_LIN_ALW_START_WO_BUS_PWR, ) -def get_session_intf_flex_ray_dec_corr( +def set_session_intf_lin_alw_start_wo_bus_pwr( ref, # type: int + value, # type: bool ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> None + _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_DEC_CORR, + _cconsts.NX_PROP_SESSION_INTF_LIN_ALW_START_WO_BUS_PWR, + value, ) -def set_session_intf_flex_ray_dec_corr( +def get_session_intf_lin_ostr_slv_rsp_lst_by_nad( ref, # type: int - value, # type: int +): + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_u32_array( + ref, + _cconsts.NX_PROP_SESSION_INTF_LINO_STR_SLV_RSP_LST_BY_NAD, + ) + + +def set_session_intf_lin_ostr_slv_rsp_lst_by_nad( + ref, # type: int + value, # type: typing.List[int] ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_u32_array( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_DEC_CORR, + _cconsts.NX_PROP_SESSION_INTF_LINO_STR_SLV_RSP_LST_BY_NAD, value, ) -def get_session_intf_flex_ray_delay_comp_a( +def get_session_intf_lin_no_response_to_in_strm( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> bool + return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_DELAY_COMP_A, + _cconsts.NX_PROP_SESSION_INTF_LIN_NO_RESPONSE_TO_IN_STRM, ) -def set_session_intf_flex_ray_delay_comp_a( +def set_session_intf_lin_no_response_to_in_strm( ref, # type: int - value, # type: int + value, # type: bool ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_DELAY_COMP_A, + _cconsts.NX_PROP_SESSION_INTF_LIN_NO_RESPONSE_TO_IN_STRM, value, ) -def get_session_intf_flex_ray_delay_comp_b( +def get_session_intf_src_term_start_trigger( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> typing.Text + return _cprops.get_session_string( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_DELAY_COMP_B, + _cconsts.NX_PROP_SESSION_INTF_SRC_TERM_START_TRIGGER, ) -def set_session_intf_flex_ray_delay_comp_b( +def set_session_intf_src_term_start_trigger( ref, # type: int - value, # type: int + value, # type: typing.Text ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_string( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_DELAY_COMP_B, + _cconsts.NX_PROP_SESSION_INTF_SRC_TERM_START_TRIGGER, value, ) -def get_session_intf_flex_ray_key_slot_id( +def get_session_j1939_address( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_KEY_SLOT_ID, + _cconsts.NX_PROP_SESSION_J1939_ADDRESS, ) -def set_session_intf_flex_ray_key_slot_id( +def set_session_j1939_address( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_KEY_SLOT_ID, + _cconsts.NX_PROP_SESSION_J1939_ADDRESS, value, ) -def get_session_intf_flex_ray_latest_tx( +def get_session_j1939_name( ref, # type: int ): # type: (...) -> int - return _cprops.get_session_u32( + return _cprops.get_session_u64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_LATEST_TX, + _cconsts.NX_PROP_SESSION_J1939_NAME, ) -def get_session_intf_flex_ray_list_timo( +def set_session_j1939_name( ref, # type: int + value, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> None + _cprops.set_session_u64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_LIST_TIMO, + _cconsts.NX_PROP_SESSION_J1939_NAME, + value, ) -def set_session_intf_flex_ray_list_timo( +def set_session_j1939ecu( ref, # type: int value, # type: int ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_ref( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_LIST_TIMO, + _cconsts.NX_PROP_SESSION_J1939ECU, value, ) -def get_session_intf_flex_ray_mac_init_off_a( +def get_session_j1939_timeout_t1( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MAC_INIT_OFF_A, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T1, ) -def set_session_intf_flex_ray_mac_init_off_a( +def set_session_j1939_timeout_t1( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MAC_INIT_OFF_A, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T1, value, ) -def get_session_intf_flex_ray_mac_init_off_b( +def get_session_j1939_timeout_t2( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MAC_INIT_OFF_B, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T2, ) -def set_session_intf_flex_ray_mac_init_off_b( +def set_session_j1939_timeout_t2( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MAC_INIT_OFF_B, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T2, value, ) -def get_session_intf_flex_ray_mic_init_off_a( +def get_session_j1939_timeout_t3( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MIC_INIT_OFF_A, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T3, ) -def set_session_intf_flex_ray_mic_init_off_a( +def set_session_j1939_timeout_t3( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MIC_INIT_OFF_A, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T3, value, ) -def get_session_intf_flex_ray_mic_init_off_b( +def get_session_j1939_timeout_t4( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MIC_INIT_OFF_B, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T4, ) -def set_session_intf_flex_ray_mic_init_off_b( +def set_session_j1939_timeout_t4( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MIC_INIT_OFF_B, + _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T4, value, ) -def get_session_intf_flex_ray_max_drift( +def get_session_j1939_response_time_tr_sd( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MAX_DRIFT, + _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_SD, ) -def set_session_intf_flex_ray_max_drift( +def set_session_j1939_response_time_tr_sd( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MAX_DRIFT, + _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_SD, value, ) -def get_session_intf_flex_ray_microtick( +def get_session_j1939_response_time_tr_gd( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_MICROTICK, + _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_GD, ) -def get_session_intf_flex_ray_null_to_in_strm( +def set_session_j1939_response_time_tr_gd( ref, # type: int + value, # type: float ): - # type: (...) -> bool - return _cprops.get_session_bool( + # type: (...) -> None + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_NULL_TO_IN_STRM, + _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_GD, + value, ) -def set_session_intf_flex_ray_null_to_in_strm( +def get_session_j1939_hold_time_th( ref, # type: int - value, # type: bool ): - # type: (...) -> None - _cprops.set_session_bool( + # type: (...) -> float + return _cprops.get_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_NULL_TO_IN_STRM, - value, + _cconsts.NX_PROP_SESSION_J1939_HOLD_TIME_TH, ) -def get_session_intf_flex_ray_off_corr( +def set_session_j1939_hold_time_th( ref, # type: int + value, # type: float ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> None + _cprops.set_session_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_OFF_CORR, + _cconsts.NX_PROP_SESSION_J1939_HOLD_TIME_TH, + value, ) -def get_session_intf_flex_ray_off_corr_out( +def get_session_j1939_num_packets_recv( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_OFF_CORR_OUT, + _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RECV, ) -def set_session_intf_flex_ray_off_corr_out( +def set_session_j1939_num_packets_recv( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_OFF_CORR_OUT, + _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RECV, value, ) -def get_session_intf_flex_ray_rate_corr( +def get_session_j1939_num_packets_resp( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_RATE_CORR, + _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RESP, + ) + + +def set_session_j1939_num_packets_resp( + ref, # type: int + value, # type: int +): + # type: (...) -> None + _cprops.set_session_u32( + ref, + _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RESP, + value, ) -def get_session_intf_flex_ray_rate_corr_out( +def get_session_j1939_max_repeat_cts( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_RATE_CORR_OUT, + _cconsts.NX_PROP_SESSION_J1939_MAX_REPEAT_CTS, ) -def set_session_intf_flex_ray_rate_corr_out( +def set_session_j1939_max_repeat_cts( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_RATE_CORR_OUT, + _cconsts.NX_PROP_SESSION_J1939_MAX_REPEAT_CTS, value, ) -def get_session_intf_flex_ray_samp_per_micro( +def get_session_j1939_fill_byte( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SAMP_PER_MICRO, + _cconsts.NX_PROP_SESSION_J1939_FILL_BYTE, ) -def set_session_intf_flex_ray_samp_per_micro( +def set_session_j1939_fill_byte( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SAMP_PER_MICRO, + _cconsts.NX_PROP_SESSION_J1939_FILL_BYTE, value, ) -def get_session_intf_flex_ray_sing_slot_en( +def get_session_j1939_write_queue_size( ref, # type: int ): - # type: (...) -> bool - return _cprops.get_session_bool( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SING_SLOT_EN, + _cconsts.NX_PROP_SESSION_J1939_WRITE_QUEUE_SIZE, ) -def set_session_intf_flex_ray_sing_slot_en( +def set_session_j1939_write_queue_size( ref, # type: int - value, # type: bool + value, # type: int ): # type: (...) -> None - _cprops.set_session_bool( + _cprops.set_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SING_SLOT_EN, + _cconsts.NX_PROP_SESSION_J1939_WRITE_QUEUE_SIZE, value, ) -def get_session_intf_flex_ray_statistics_en( +def get_session_j1939ecu_busy( ref, # type: int ): # type: (...) -> bool return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_STATISTICS_EN, + _cconsts.NX_PROP_SESSION_J1939ECU_BUSY, ) -def set_session_intf_flex_ray_statistics_en( +def set_session_j1939ecu_busy( ref, # type: int value, # type: bool ): # type: (...) -> None _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_STATISTICS_EN, + _cconsts.NX_PROP_SESSION_J1939ECU_BUSY, value, ) -def get_session_intf_flex_ray_sym_to_in_strm( +def get_session_intf_can_edge_filter( ref, # type: int ): # type: (...) -> bool return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYM_TO_IN_STRM, + _cconsts.NX_PROP_SESSION_INTF_CAN_EDGE_FILTER, ) -def set_session_intf_flex_ray_sym_to_in_strm( +def set_session_intf_can_edge_filter( ref, # type: int value, # type: bool ): # type: (...) -> None _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYM_TO_IN_STRM, + _cconsts.NX_PROP_SESSION_INTF_CAN_EDGE_FILTER, value, ) -def get_session_intf_flex_ray_sync_ch_a_even( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_u32_array( - ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYNC_CH_A_EVEN, - ) - - -def get_session_intf_flex_ray_sync_ch_a_odd( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_u32_array( - ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYNC_CH_A_ODD, - ) - - -def get_session_intf_flex_ray_sync_ch_b_even( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_u32_array( - ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYNC_CH_B_EVEN, - ) - - -def get_session_intf_flex_ray_sync_ch_b_odd( +def get_session_intf_can_transmit_pause( ref, # type: int ): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_u32_array( + # type: (...) -> bool + return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYNC_CH_B_ODD, + _cconsts.NX_PROP_SESSION_INTF_CAN_TRANSMIT_PAUSE, ) -def get_session_intf_flex_ray_sync_status( +def set_session_intf_can_transmit_pause( ref, # type: int + value, # type: bool ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> None + _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SYNC_STATUS, + _cconsts.NX_PROP_SESSION_INTF_CAN_TRANSMIT_PAUSE, + value, ) -def get_session_intf_flex_ray_term( +def get_session_intf_can_disable_prot_exception_handling( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> bool + return _cprops.get_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_TERM, + _cconsts.NX_PROP_SESSION_INTF_CAN_DISABLE_PROT_EXCEPTION_HANDLING, ) -def set_session_intf_flex_ray_term( +def set_session_intf_can_disable_prot_exception_handling( ref, # type: int - value, # type: int + value, # type: bool ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_bool( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_TERM, + _cconsts.NX_PROP_SESSION_INTF_CAN_DISABLE_PROT_EXCEPTION_HANDLING, value, ) -def get_session_intf_flex_ray_wakeup_ch( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_WAKEUP_CH, - ) - - -def set_session_intf_flex_ray_wakeup_ch( +def set_session_can_start_time_off( ref, # type: int - value, # type: int + sub, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_sub_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_WAKEUP_CH, + sub, + _cconsts.NX_PROP_SESSION_SUB_CAN_START_TIME_OFF, value, ) -def get_session_intf_flex_ray_wakeup_ptrn( +def set_session_can_tx_time( ref, # type: int + sub, # type: int + value, # type: float ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> None + _cprops.set_session_sub_f64( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_WAKEUP_PTRN, + sub, + _cconsts.NX_PROP_SESSION_SUB_CAN_TX_TIME, + value, ) -def set_session_intf_flex_ray_wakeup_ptrn( +def set_session_skip_n_cyclic_frames( ref, # type: int + sub, # type: int value, # type: int ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_sub_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_WAKEUP_PTRN, + sub, + _cconsts.NX_PROP_SESSION_SUB_SKIP_N_CYCLIC_FRAMES, value, ) -def set_session_intf_flex_ray_sleep( +def set_session_lin_tx_n_corrupted_chksums( ref, # type: int + sub, # type: int value, # type: int ): # type: (...) -> None - _cprops.set_session_u32( + _cprops.set_session_sub_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_SLEEP, + sub, + _cconsts.NX_PROP_SESSION_SUB_LIN_TX_N_CORRUPTED_CHKSUMS, value, ) -def get_session_intf_flex_ray_connected_chs( +def set_session_j1939_addr_filter( ref, # type: int + sub, # type: int + value, # type: typing.Text ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> None + _cprops.set_session_sub_string( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_CONNECTED_CHS, + sub, + _cconsts.NX_PROP_SESSION_SUB_J1939_ADDR_FILTER, + value, ) -def set_session_intf_flex_ray_connected_chs( +def get_system_dev_refs( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_session_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_SESSION_INTF_FLEX_RAY_CONNECTED_CHS, - value, + _cconsts.NX_PROP_SYS_DEV_REFS, ) -def get_session_intf_lin_break_length( +def get_system_intf_refs( ref, # type: int ): - # type: (...) -> int - return _cprops.get_session_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_BREAK_LENGTH, + _cconsts.NX_PROP_SYS_INTF_REFS, ) -def set_session_intf_lin_break_length( +def get_system_intf_refs_can( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_session_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_BREAK_LENGTH, - value, + _cconsts.NX_PROP_SYS_INTF_REFS_CAN, ) -def get_session_intf_lin_master( +def get_system_intf_refs_lin( ref, # type: int ): - # type: (...) -> bool - return _cprops.get_session_bool( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_MASTER, + _cconsts.NX_PROP_SYS_INTF_REFS_LIN, ) -def set_session_intf_lin_master( +def get_system_ver_build( ref, # type: int - value, # type: bool ): - # type: (...) -> None - _cprops.set_session_bool( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_MASTER, - value, + _cconsts.NX_PROP_SYS_VER_BUILD, ) -def get_session_intf_lin_sched_names( +def get_system_ver_major( ref, # type: int ): - # type: (...) -> typing.Iterable[typing.Text] - return _cprops.get_session_string_array( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_SCHED_NAMES, + _cconsts.NX_PROP_SYS_VER_MAJOR, ) -def set_session_intf_lin_sleep( +def get_system_ver_minor( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_session_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_SLEEP, - value, + _cconsts.NX_PROP_SYS_VER_MINOR, ) -def get_session_intf_lin_term( +def get_system_ver_phase( ref, # type: int ): # type: (...) -> int return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_TERM, + _cconsts.NX_PROP_SYS_VER_PHASE, ) -def set_session_intf_lin_term( +def get_system_ver_update( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_session_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_TERM, - value, + _cconsts.NX_PROP_SYS_VER_UPDATE, ) -def get_session_intf_lin_diag_p2min( +def get_system_intf_refs_all( ref, # type: int ): - # type: (...) -> float - return _cprops.get_session_f64( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_P_2MIN, + _cconsts.NX_PROP_SYS_INTF_REFS_ALL, ) -def set_session_intf_lin_diag_p2min( +def get_device_form_fac( ref, # type: int - value, # type: float ): - # type: (...) -> None - _cprops.set_session_f64( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_P_2MIN, - value, + _cconsts.NX_PROP_DEV_FORM_FAC, ) -def get_session_intf_lin_diag_stmin( +def get_device_intf_refs( ref, # type: int ): - # type: (...) -> float - return _cprops.get_session_f64( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_S_TMIN, + _cconsts.NX_PROP_DEV_INTF_REFS, ) -def set_session_intf_lin_diag_stmin( +def get_device_name( ref, # type: int - value, # type: float ): - # type: (...) -> None - _cprops.set_session_f64( + # type: (...) -> typing.Text + return _cprops.get_session_string( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_DIAG_S_TMIN, - value, + _cconsts.NX_PROP_DEV_NAME, ) -def get_session_intf_lin_alw_start_wo_bus_pwr( +def get_device_num_ports( ref, # type: int ): - # type: (...) -> bool - return _cprops.get_session_bool( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_ALW_START_WO_BUS_PWR, + _cconsts.NX_PROP_DEV_NUM_PORTS, ) -def set_session_intf_lin_alw_start_wo_bus_pwr( +def get_device_product_num( ref, # type: int - value, # type: bool ): - # type: (...) -> None - _cprops.set_session_bool( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_ALW_START_WO_BUS_PWR, - value, + _cconsts.NX_PROP_DEV_PRODUCT_NUM, ) -def get_session_intf_lin_ostr_slv_rsp_lst_by_nad( +def get_device_ser_num( ref, # type: int ): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_u32_array( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LINO_STR_SLV_RSP_LST_BY_NAD, + _cconsts.NX_PROP_DEV_SER_NUM, ) -def set_session_intf_lin_ostr_slv_rsp_lst_by_nad( +def get_device_slot_num( ref, # type: int - value, # type: typing.List[int] ): - # type: (...) -> None - _cprops.set_session_u32_array( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_SESSION_INTF_LINO_STR_SLV_RSP_LST_BY_NAD, - value, + _cconsts.NX_PROP_DEV_SLOT_NUM, ) -def get_session_intf_lin_no_response_to_in_strm( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_NO_RESPONSE_TO_IN_STRM, - ) - - -def set_session_intf_lin_no_response_to_in_strm( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_LIN_NO_RESPONSE_TO_IN_STRM, - value, - ) - - -def get_session_intf_src_term_start_trigger( - ref, # type: int -): - # type: (...) -> typing.Text - return _cprops.get_session_string( - ref, - _cconsts.NX_PROP_SESSION_INTF_SRC_TERM_START_TRIGGER, - ) - - -def set_session_intf_src_term_start_trigger( - ref, # type: int - value, # type: typing.Text -): - # type: (...) -> None - _cprops.set_session_string( - ref, - _cconsts.NX_PROP_SESSION_INTF_SRC_TERM_START_TRIGGER, - value, - ) - - -def get_session_j1939_address( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_ADDRESS, - ) - - -def set_session_j1939_address( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_ADDRESS, - value, - ) - - -def get_session_j1939_name( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u64( - ref, - _cconsts.NX_PROP_SESSION_J1939_NAME, - ) - - -def set_session_j1939_name( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u64( - ref, - _cconsts.NX_PROP_SESSION_J1939_NAME, - value, - ) - - -def set_session_j1939ecu( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_ref( - ref, - _cconsts.NX_PROP_SESSION_J1939ECU, - value, - ) - - -def get_session_j1939_timeout_t1( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T1, - ) - - -def set_session_j1939_timeout_t1( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T1, - value, - ) - - -def get_session_j1939_timeout_t2( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T2, - ) - - -def set_session_j1939_timeout_t2( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T2, - value, - ) - - -def get_session_j1939_timeout_t3( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T3, - ) - - -def set_session_j1939_timeout_t3( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T3, - value, - ) - - -def get_session_j1939_timeout_t4( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T4, - ) - - -def set_session_j1939_timeout_t4( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_TIMEOUT_T4, - value, - ) - - -def get_session_j1939_response_time_tr_sd( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_SD, - ) - - -def set_session_j1939_response_time_tr_sd( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_SD, - value, - ) - - -def get_session_j1939_response_time_tr_gd( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_GD, - ) - - -def set_session_j1939_response_time_tr_gd( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_RESPONSE_TIME_TR_GD, - value, - ) - - -def get_session_j1939_hold_time_th( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_HOLD_TIME_TH, - ) - - -def set_session_j1939_hold_time_th( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_f64( - ref, - _cconsts.NX_PROP_SESSION_J1939_HOLD_TIME_TH, - value, - ) - - -def get_session_j1939_num_packets_recv( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RECV, - ) - - -def set_session_j1939_num_packets_recv( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RECV, - value, - ) - - -def get_session_j1939_num_packets_resp( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RESP, - ) - - -def set_session_j1939_num_packets_resp( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_NUM_PACKETS_RESP, - value, - ) - - -def get_session_j1939_max_repeat_cts( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_MAX_REPEAT_CTS, - ) - - -def set_session_j1939_max_repeat_cts( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_MAX_REPEAT_CTS, - value, - ) - - -def get_session_j1939_fill_byte( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_FILL_BYTE, - ) - - -def set_session_j1939_fill_byte( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_FILL_BYTE, - value, - ) - - -def get_session_j1939_write_queue_size( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_WRITE_QUEUE_SIZE, - ) - - -def set_session_j1939_write_queue_size( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_u32( - ref, - _cconsts.NX_PROP_SESSION_J1939_WRITE_QUEUE_SIZE, - value, - ) - - -def get_session_j1939ecu_busy( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_session_bool( - ref, - _cconsts.NX_PROP_SESSION_J1939ECU_BUSY, - ) - - -def set_session_j1939ecu_busy( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_session_bool( - ref, - _cconsts.NX_PROP_SESSION_J1939ECU_BUSY, - value, - ) - - -def get_session_intf_can_edge_filter( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_CAN_EDGE_FILTER, - ) - - -def set_session_intf_can_edge_filter( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_CAN_EDGE_FILTER, - value, - ) - - -def get_session_intf_can_transmit_pause( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_CAN_TRANSMIT_PAUSE, - ) - - -def set_session_intf_can_transmit_pause( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_CAN_TRANSMIT_PAUSE, - value, - ) - - -def get_session_intf_can_disable_prot_exception_handling( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_CAN_DISABLE_PROT_EXCEPTION_HANDLING, - ) - - -def set_session_intf_can_disable_prot_exception_handling( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_session_bool( - ref, - _cconsts.NX_PROP_SESSION_INTF_CAN_DISABLE_PROT_EXCEPTION_HANDLING, - value, - ) - - -def set_session_can_start_time_off( - ref, # type: int - sub, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_sub_f64( - ref, - sub, - _cconsts.NX_PROP_SESSION_SUB_CAN_START_TIME_OFF, - value, - ) - - -def set_session_can_tx_time( - ref, # type: int - sub, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_session_sub_f64( - ref, - sub, - _cconsts.NX_PROP_SESSION_SUB_CAN_TX_TIME, - value, - ) - - -def set_session_skip_n_cyclic_frames( - ref, # type: int - sub, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_sub_u32( - ref, - sub, - _cconsts.NX_PROP_SESSION_SUB_SKIP_N_CYCLIC_FRAMES, - value, - ) - - -def set_session_lin_tx_n_corrupted_chksums( - ref, # type: int - sub, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_session_sub_u32( - ref, - sub, - _cconsts.NX_PROP_SESSION_SUB_LIN_TX_N_CORRUPTED_CHKSUMS, - value, - ) - - -def set_session_j1939_addr_filter( - ref, # type: int - sub, # type: int - value, # type: typing.Text -): - # type: (...) -> None - _cprops.set_session_sub_string( - ref, - sub, - _cconsts.NX_PROP_SESSION_SUB_J1939_ADDR_FILTER, - value, - ) - - -def get_system_dev_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_SYS_DEV_REFS, - ) - - -def get_system_intf_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_SYS_INTF_REFS, - ) - - -def get_system_intf_refs_can( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_SYS_INTF_REFS_CAN, - ) - - -def get_system_intf_refs_flex_ray( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_SYS_INTF_REFS_FLEX_RAY, - ) - - -def get_system_intf_refs_lin( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_SYS_INTF_REFS_LIN, - ) - - -def get_system_ver_build( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SYS_VER_BUILD, - ) - - -def get_system_ver_major( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SYS_VER_MAJOR, - ) - - -def get_system_ver_minor( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SYS_VER_MINOR, - ) - - -def get_system_ver_phase( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SYS_VER_PHASE, - ) - - -def get_system_ver_update( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_SYS_VER_UPDATE, - ) - - -def get_system_intf_refs_all( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_SYS_INTF_REFS_ALL, - ) - - -def get_device_form_fac( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_DEV_FORM_FAC, - ) - - -def get_device_intf_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_DEV_INTF_REFS, - ) - - -def get_device_name( - ref, # type: int -): - # type: (...) -> typing.Text - return _cprops.get_session_string( - ref, - _cconsts.NX_PROP_DEV_NAME, - ) - - -def get_device_num_ports( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_DEV_NUM_PORTS, - ) - - -def get_device_product_num( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_DEV_PRODUCT_NUM, - ) - - -def get_device_ser_num( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_DEV_SER_NUM, - ) - - -def get_device_slot_num( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_DEV_SLOT_NUM, - ) - - -def get_device_num_ports_all( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_DEV_NUM_PORTS_ALL, - ) - - -def get_device_intf_refs_all( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_session_ref_array( - ref, - _cconsts.NX_PROP_DEV_INTF_REFS_ALL, - ) - - -def get_interface_dev_ref( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_ref( - ref, - _cconsts.NX_PROP_INTF_DEV_REF, - ) - - -def get_interface_name( - ref, # type: int -): - # type: (...) -> typing.Text - return _cprops.get_session_string( - ref, - _cconsts.NX_PROP_INTF_NAME, - ) - - -def get_interface_num( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_NUM, - ) - - -def get_interface_port_num( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_PORT_NUM, - ) - - -def get_interface_protocol( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_PROTOCOL, - ) - - -def get_interface_can_term_cap( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_CAN_TERM_CAP, - ) - - -def get_interface_can_tcvr_cap( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_CAN_TCVR_CAP, - ) - - -def get_interface_dongle_state( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_DONGLE_STATE, - ) - - -def get_interface_dongle_id( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_DONGLE_ID, - ) - - -def get_interface_dongle_revision( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_DONGLE_REVISION, - ) - - -def get_interface_dongle_firmware_version( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_DONGLE_FIRMWARE_VERSION, - ) - - -def get_interface_dongle_compatible_revision( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_DONGLE_COMPATIBLE_REVISION, - ) - - -def get_interface_dongle_compatible_firmware_version( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_session_u32( - ref, - _cconsts.NX_PROP_INTF_DONGLE_COMPATIBLE_FIRMWARE_VERSION, - ) - - -def get_database_name( - ref, # type: int -): - # type: (...) -> typing.Text - return _cprops.get_database_string( - ref, - _cconsts.NX_PROP_DATABASE_NAME, - ) - - -def get_database_clst_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_ref_array( - ref, - _cconsts.NX_PROP_DATABASE_CLST_REFS, - ) - - -def get_database_show_invalid_from_open( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_DATABASE_SHOW_INVALID_FROM_OPEN, - ) - - -def set_database_show_invalid_from_open( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_database_bool( - ref, - _cconsts.NX_PROP_DATABASE_SHOW_INVALID_FROM_OPEN, - value, - ) - - -def get_cluster_baud_rate( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_BAUD_RATE, - ) - - -def set_cluster_baud_rate( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_BAUD_RATE, - value, - ) - - -def get_cluster_baud_rate64( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u64( - ref, - _cconsts.NX_PROP_CLST_BAUD_RATE64, - ) - - -def set_cluster_baud_rate64( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u64( - ref, - _cconsts.NX_PROP_CLST_BAUD_RATE64, - value, - ) - - -def get_cluster_comment( - ref, # type: int -): - # type: (...) -> typing.Text - return _cprops.get_database_string( - ref, - _cconsts.NX_PROP_CLST_COMMENT, - ) - - -def set_cluster_comment( - ref, # type: int - value, # type: typing.Text -): - # type: (...) -> None - _cprops.set_database_string( - ref, - _cconsts.NX_PROP_CLST_COMMENT, - value, - ) - - -def get_cluster_config_status( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_CONFIG_STATUS, - ) - - -def get_cluster_database_ref( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_ref( - ref, - _cconsts.NX_PROP_CLST_DATABASE_REF, - ) - - -def get_cluster_ecu_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_ref_array( - ref, - _cconsts.NX_PROP_CLST_ECU_REFS, - ) - - -def get_cluster_frm_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_ref_array( - ref, - _cconsts.NX_PROP_CLST_FRM_REFS, - ) - - -def get_cluster_name( - ref, # type: int -): - # type: (...) -> typing.Text - return _cprops.get_database_string( - ref, - _cconsts.NX_PROP_CLST_NAME, - ) - - -def set_cluster_name( - ref, # type: int - value, # type: typing.Text -): - # type: (...) -> None - _cprops.set_database_string( - ref, - _cconsts.NX_PROP_CLST_NAME, - value, - ) - - -def get_cluster_pdu_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_ref_array( - ref, - _cconsts.NX_PROP_CLST_PDU_REFS, - ) - - -def get_cluster_pd_us_reqd( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_CLST_PD_US_REQD, - ) - - -def get_cluster_protocol( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_PROTOCOL, - ) - - -def set_cluster_protocol( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_PROTOCOL, - value, - ) - - -def get_cluster_sig_refs( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_ref_array( - ref, - _cconsts.NX_PROP_CLST_SIG_REFS, - ) - - -def get_cluster_can_io_mode( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_CAN_IO_MODE, - ) - - -def set_cluster_can_io_mode( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_CAN_IO_MODE, - value, - ) - - -def get_cluster_can_fd_baud_rate( +def get_device_num_ports_all( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE, - ) - - -def set_cluster_can_fd_baud_rate( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE, - value, - ) - - -def get_cluster_can_fd_baud_rate64( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u64( - ref, - _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE64, - ) - - -def set_cluster_can_fd_baud_rate64( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u64( - ref, - _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE64, - value, - ) - - -def get_cluster_flex_ray_act_pt_off( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_ACT_PT_OFF, - ) - - -def set_cluster_flex_ray_act_pt_off( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_ACT_PT_OFF, - value, - ) - - -def get_cluster_flex_ray_cas_rx_l_max( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CAS_RX_L_MAX, - ) - - -def set_cluster_flex_ray_cas_rx_l_max( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CAS_RX_L_MAX, - value, - ) - - -def get_cluster_flex_ray_channels( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CHANNELS, - ) - - -def set_cluster_flex_ray_channels( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CHANNELS, - value, - ) - - -def get_cluster_flex_ray_clst_drift_dmp( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CLST_DRIFT_DMP, - ) - - -def set_cluster_flex_ray_clst_drift_dmp( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CLST_DRIFT_DMP, - value, - ) - - -def get_cluster_flex_ray_cold_st_ats( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_COLD_ST_ATS, - ) - - -def set_cluster_flex_ray_cold_st_ats( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_COLD_ST_ATS, - value, - ) - - -def get_cluster_flex_ray_cycle( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CYCLE, - ) - - -def set_cluster_flex_ray_cycle( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_CYCLE, - value, - ) - - -def get_cluster_flex_ray_dyn_seg_start( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_DYN_SEG_START, - ) - - -def get_cluster_flex_ray_dyn_slot_idl_ph( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_DYN_SLOT_IDL_PH, - ) - - -def set_cluster_flex_ray_dyn_slot_idl_ph( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_DYN_SLOT_IDL_PH, - value, - ) - - -def get_cluster_flex_ray_latest_usable_dyn( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_LATEST_USABLE_DYN, - ) - - -def get_cluster_flex_ray_latest_guar_dyn( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_LATEST_GUAR_DYN, - ) - - -def get_cluster_flex_ray_lis_noise( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_LIS_NOISE, - ) - - -def set_cluster_flex_ray_lis_noise( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_LIS_NOISE, - value, - ) - - -def get_cluster_flex_ray_macro_per_cycle( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MACRO_PER_CYCLE, - ) - - -def set_cluster_flex_ray_macro_per_cycle( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MACRO_PER_CYCLE, - value, - ) - - -def get_cluster_flex_ray_macrotick( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_database_f64( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MACROTICK, - ) - - -def get_cluster_flex_ray_max_wo_clk_cor_fat( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MAX_WO_CLK_COR_FAT, - ) - - -def set_cluster_flex_ray_max_wo_clk_cor_fat( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MAX_WO_CLK_COR_FAT, - value, - ) - - -def get_cluster_flex_ray_max_wo_clk_cor_pas( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MAX_WO_CLK_COR_PAS, + _cconsts.NX_PROP_DEV_NUM_PORTS_ALL, ) -def set_cluster_flex_ray_max_wo_clk_cor_pas( +def get_device_intf_refs_all( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_session_ref_array( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MAX_WO_CLK_COR_PAS, - value, + _cconsts.NX_PROP_DEV_INTF_REFS_ALL, ) -def get_cluster_flex_ray_minislot_act_pt( +def get_interface_dev_ref( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_ref( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MINISLOT_ACT_PT, + _cconsts.NX_PROP_INTF_DEV_REF, ) -def set_cluster_flex_ray_minislot_act_pt( +def get_interface_name( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> typing.Text + return _cprops.get_session_string( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MINISLOT_ACT_PT, - value, + _cconsts.NX_PROP_INTF_NAME, ) -def get_cluster_flex_ray_minislot( +def get_interface_num( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MINISLOT, + _cconsts.NX_PROP_INTF_NUM, ) -def set_cluster_flex_ray_minislot( +def get_interface_port_num( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_MINISLOT, - value, + _cconsts.NX_PROP_INTF_PORT_NUM, ) -def get_cluster_flex_ray_nm_vec_len( +def get_interface_protocol( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NM_VEC_LEN, + _cconsts.NX_PROP_INTF_PROTOCOL, ) -def set_cluster_flex_ray_nm_vec_len( +def get_interface_can_term_cap( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NM_VEC_LEN, - value, + _cconsts.NX_PROP_INTF_CAN_TERM_CAP, ) -def get_cluster_flex_ray_nit( +def get_interface_can_tcvr_cap( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NIT, + _cconsts.NX_PROP_INTF_CAN_TCVR_CAP, ) -def set_cluster_flex_ray_nit( +def get_interface_dongle_state( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NIT, - value, + _cconsts.NX_PROP_INTF_DONGLE_STATE, ) -def get_cluster_flex_ray_nit_start( +def get_interface_dongle_id( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NIT_START, + _cconsts.NX_PROP_INTF_DONGLE_ID, ) -def get_cluster_flex_ray_num_minislt( +def get_interface_dongle_revision( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NUM_MINISLT, + _cconsts.NX_PROP_INTF_DONGLE_REVISION, ) -def set_cluster_flex_ray_num_minislt( +def get_interface_dongle_firmware_version( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NUM_MINISLT, - value, + _cconsts.NX_PROP_INTF_DONGLE_FIRMWARE_VERSION, ) -def get_cluster_flex_ray_num_stat_slt( +def get_interface_dongle_compatible_revision( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NUM_STAT_SLT, + _cconsts.NX_PROP_INTF_DONGLE_COMPATIBLE_REVISION, ) -def set_cluster_flex_ray_num_stat_slt( +def get_interface_dongle_compatible_firmware_version( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> int + return _cprops.get_session_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_NUM_STAT_SLT, - value, + _cconsts.NX_PROP_INTF_DONGLE_COMPATIBLE_FIRMWARE_VERSION, ) -def get_cluster_flex_ray_off_cor_st( +def get_database_name( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> typing.Text + return _cprops.get_database_string( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_OFF_COR_ST, + _cconsts.NX_PROP_DATABASE_NAME, ) -def set_cluster_flex_ray_off_cor_st( +def get_database_clst_refs( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_database_ref_array( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_OFF_COR_ST, - value, + _cconsts.NX_PROP_DATABASE_CLST_REFS, ) -def get_cluster_flex_ray_payld_len_dyn_max( +def get_database_show_invalid_from_open( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> bool + return _cprops.get_database_bool( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_PAYLD_LEN_DYN_MAX, + _cconsts.NX_PROP_DATABASE_SHOW_INVALID_FROM_OPEN, ) -def set_cluster_flex_ray_payld_len_dyn_max( +def set_database_show_invalid_from_open( ref, # type: int - value, # type: int + value, # type: bool ): # type: (...) -> None - _cprops.set_database_u32( + _cprops.set_database_bool( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_PAYLD_LEN_DYN_MAX, + _cconsts.NX_PROP_DATABASE_SHOW_INVALID_FROM_OPEN, value, ) -def get_cluster_flex_ray_payld_len_max( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_PAYLD_LEN_MAX, - ) - - -def get_cluster_flex_ray_payld_len_st( +def get_cluster_baud_rate( ref, # type: int ): # type: (...) -> int return _cprops.get_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_PAYLD_LEN_ST, + _cconsts.NX_PROP_CLST_BAUD_RATE, ) -def set_cluster_flex_ray_payld_len_st( +def set_cluster_baud_rate( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_PAYLD_LEN_ST, + _cconsts.NX_PROP_CLST_BAUD_RATE, value, ) -def get_cluster_flex_ray_stat_slot( +def get_cluster_baud_rate64( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( + return _cprops.get_database_u64( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_STAT_SLOT, + _cconsts.NX_PROP_CLST_BAUD_RATE64, ) -def set_cluster_flex_ray_stat_slot( +def set_cluster_baud_rate64( ref, # type: int value, # type: int ): # type: (...) -> None - _cprops.set_database_u32( + _cprops.set_database_u64( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_STAT_SLOT, + _cconsts.NX_PROP_CLST_BAUD_RATE64, value, ) -def get_cluster_flex_ray_sym_win( +def get_cluster_comment( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> typing.Text + return _cprops.get_database_string( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_SYM_WIN, + _cconsts.NX_PROP_CLST_COMMENT, ) -def set_cluster_flex_ray_sym_win( +def set_cluster_comment( ref, # type: int - value, # type: int + value, # type: typing.Text ): # type: (...) -> None - _cprops.set_database_u32( + _cprops.set_database_string( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_SYM_WIN, + _cconsts.NX_PROP_CLST_COMMENT, value, ) -def get_cluster_flex_ray_sym_win_start( +def get_cluster_config_status( ref, # type: int ): # type: (...) -> int return _cprops.get_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_SYM_WIN_START, + _cconsts.NX_PROP_CLST_CONFIG_STATUS, ) -def get_cluster_flex_ray_sync_node_max( +def get_cluster_database_ref( ref, # type: int ): # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_SYNC_NODE_MAX, - ) - - -def set_cluster_flex_ray_sync_node_max( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( + return _cprops.get_database_ref( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_SYNC_NODE_MAX, - value, + _cconsts.NX_PROP_CLST_DATABASE_REF, ) -def get_cluster_flex_ray_tss_tx( +def get_cluster_ecu_refs( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_database_ref_array( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_TSS_TX, + _cconsts.NX_PROP_CLST_ECU_REFS, ) -def set_cluster_flex_ray_tss_tx( +def get_cluster_frm_refs( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_database_ref_array( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_TSS_TX, - value, + _cconsts.NX_PROP_CLST_FRM_REFS, ) -def get_cluster_flex_ray_wake_sym_rx_idl( +def get_cluster_name( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> typing.Text + return _cprops.get_database_string( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_RX_IDL, + _cconsts.NX_PROP_CLST_NAME, ) -def set_cluster_flex_ray_wake_sym_rx_idl( +def set_cluster_name( ref, # type: int - value, # type: int + value, # type: typing.Text ): # type: (...) -> None - _cprops.set_database_u32( + _cprops.set_database_string( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_RX_IDL, + _cconsts.NX_PROP_CLST_NAME, value, ) -def get_cluster_flex_ray_wake_sym_rx_low( +def get_cluster_pdu_refs( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> typing.Iterable[int] + return _cprops.get_database_ref_array( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_RX_LOW, + _cconsts.NX_PROP_CLST_PDU_REFS, ) -def set_cluster_flex_ray_wake_sym_rx_low( +def get_cluster_pd_us_reqd( ref, # type: int - value, # type: int ): - # type: (...) -> None - _cprops.set_database_u32( + # type: (...) -> bool + return _cprops.get_database_bool( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_RX_LOW, - value, + _cconsts.NX_PROP_CLST_PD_US_REQD, ) -def get_cluster_flex_ray_wake_sym_rx_win( +def get_cluster_protocol( ref, # type: int ): # type: (...) -> int return _cprops.get_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_RX_WIN, + _cconsts.NX_PROP_CLST_PROTOCOL, ) -def set_cluster_flex_ray_wake_sym_rx_win( +def set_cluster_protocol( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_RX_WIN, + _cconsts.NX_PROP_CLST_PROTOCOL, value, ) -def get_cluster_flex_ray_wake_sym_tx_idl( +def get_cluster_sig_refs( + ref, # type: int +): + # type: (...) -> typing.Iterable[int] + return _cprops.get_database_ref_array( + ref, + _cconsts.NX_PROP_CLST_SIG_REFS, + ) + + +def get_cluster_can_io_mode( ref, # type: int ): # type: (...) -> int return _cprops.get_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_TX_IDL, + _cconsts.NX_PROP_CLST_CAN_IO_MODE, ) -def set_cluster_flex_ray_wake_sym_tx_idl( +def set_cluster_can_io_mode( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_TX_IDL, + _cconsts.NX_PROP_CLST_CAN_IO_MODE, value, ) -def get_cluster_flex_ray_wake_sym_tx_low( +def get_cluster_can_fd_baud_rate( ref, # type: int ): # type: (...) -> int return _cprops.get_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_TX_LOW, + _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE, ) -def set_cluster_flex_ray_wake_sym_tx_low( +def set_cluster_can_fd_baud_rate( ref, # type: int value, # type: int ): # type: (...) -> None _cprops.set_database_u32( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_WAKE_SYM_TX_LOW, + _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE, value, ) -def get_cluster_flex_ray_use_wakeup( +def get_cluster_can_fd_baud_rate64( ref, # type: int ): - # type: (...) -> bool - return _cprops.get_database_bool( + # type: (...) -> int + return _cprops.get_database_u64( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_USE_WAKEUP, + _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE64, ) -def set_cluster_flex_ray_use_wakeup( +def set_cluster_can_fd_baud_rate64( ref, # type: int - value, # type: bool + value, # type: int ): # type: (...) -> None - _cprops.set_database_bool( + _cprops.set_database_u64( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_USE_WAKEUP, + _cconsts.NX_PROP_CLST_CAN_FD_BAUD_RATE64, value, ) @@ -3346,52 +1922,30 @@ def get_cluster_lin_schedules( ref, # type: int ): # type: (...) -> typing.Iterable[int] - return _cprops.get_database_ref_array( - ref, - _cconsts.NX_PROP_CLST_LIN_SCHEDULES, - ) - - -def get_cluster_lin_tick( - ref, # type: int -): - # type: (...) -> float - return _cprops.get_database_f64( - ref, - _cconsts.NX_PROP_CLST_LIN_TICK, - ) - - -def set_cluster_lin_tick( - ref, # type: int - value, # type: float -): - # type: (...) -> None - _cprops.set_database_f64( + return _cprops.get_database_ref_array( ref, - _cconsts.NX_PROP_CLST_LIN_TICK, - value, + _cconsts.NX_PROP_CLST_LIN_SCHEDULES, ) -def get_cluster_flex_ray_alw_pass_act( +def get_cluster_lin_tick( ref, # type: int ): - # type: (...) -> int - return _cprops.get_database_u32( + # type: (...) -> float + return _cprops.get_database_f64( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_ALW_PASS_ACT, + _cconsts.NX_PROP_CLST_LIN_TICK, ) -def set_cluster_flex_ray_alw_pass_act( +def set_cluster_lin_tick( ref, # type: int - value, # type: int + value, # type: float ): # type: (...) -> None - _cprops.set_database_u32( + _cprops.set_database_f64( ref, - _cconsts.NX_PROP_CLST_FLEX_RAY_ALW_PASS_ACT, + _cconsts.NX_PROP_CLST_LIN_TICK, value, ) @@ -3656,214 +2210,6 @@ def set_frame_can_tx_time( ) -def get_frame_flex_ray_base_cycle( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_BASE_CYCLE, - ) - - -def set_frame_flex_ray_base_cycle( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_BASE_CYCLE, - value, - ) - - -def get_frame_flex_ray_ch_assign( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_CH_ASSIGN, - ) - - -def set_frame_flex_ray_ch_assign( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_CH_ASSIGN, - value, - ) - - -def get_frame_flex_ray_cycle_rep( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_CYCLE_REP, - ) - - -def set_frame_flex_ray_cycle_rep( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_CYCLE_REP, - value, - ) - - -def get_frame_flex_ray_preamble( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_PREAMBLE, - ) - - -def set_frame_flex_ray_preamble( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_PREAMBLE, - value, - ) - - -def get_frame_flex_ray_startup( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_STARTUP, - ) - - -def set_frame_flex_ray_startup( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_STARTUP, - value, - ) - - -def get_frame_flex_ray_sync( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_SYNC, - ) - - -def set_frame_flex_ray_sync( - ref, # type: int - value, # type: bool -): - # type: (...) -> None - _cprops.set_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_SYNC, - value, - ) - - -def get_frame_flex_ray_timing_type( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_TIMING_TYPE, - ) - - -def set_frame_flex_ray_timing_type( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_TIMING_TYPE, - value, - ) - - -def get_frame_flex_ray_in_cyc_rep_enabled( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_IN_CYC_REP_ENABLED, - ) - - -def get_frame_flex_ray_in_cyc_rep_i_ds( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_u32_array( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_IN_CYC_REP_I_DS, - ) - - -def set_frame_flex_ray_in_cyc_rep_i_ds( - ref, # type: int - value, # type: typing.List[int] -): - # type: (...) -> None - _cprops.set_database_u32_array( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_IN_CYC_REP_I_DS, - value, - ) - - -def get_frame_flex_ray_in_cyc_rep_ch_assigns( - ref, # type: int -): - # type: (...) -> typing.Iterable[int] - return _cprops.get_database_u32_array( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_IN_CYC_REP_CH_ASSIGNS, - ) - - -def set_frame_flex_ray_in_cyc_rep_ch_assigns( - ref, # type: int - value, # type: typing.List[int] -): - # type: (...) -> None - _cprops.set_database_u32_array( - ref, - _cconsts.NX_PROP_FRM_FLEX_RAY_IN_CYC_REP_CH_ASSIGNS, - value, - ) - - def get_frame_lin_checksum( ref, # type: int ): @@ -4750,92 +3096,6 @@ def set_ecu_tx_frm_refs( ) -def get_ecu_flex_ray_is_coldstart( - ref, # type: int -): - # type: (...) -> bool - return _cprops.get_database_bool( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_IS_COLDSTART, - ) - - -def get_ecu_flex_ray_startup_frame_ref( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_ref( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_STARTUP_FRAME_REF, - ) - - -def get_ecu_flex_ray_wakeup_ptrn( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_WAKEUP_PTRN, - ) - - -def set_ecu_flex_ray_wakeup_ptrn( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_WAKEUP_PTRN, - value, - ) - - -def get_ecu_flex_ray_wakeup_chs( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_WAKEUP_CHS, - ) - - -def set_ecu_flex_ray_wakeup_chs( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_WAKEUP_CHS, - value, - ) - - -def get_ecu_flex_ray_connected_chs( - ref, # type: int -): - # type: (...) -> int - return _cprops.get_database_u32( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_CONNECTED_CHS, - ) - - -def set_ecu_flex_ray_connected_chs( - ref, # type: int - value, # type: int -): - # type: (...) -> None - _cprops.set_database_u32( - ref, - _cconsts.NX_PROP_ECU_FLEX_RAY_CONNECTED_CHS, - value, - ) - - def get_ecu_lin_master( ref, # type: int ): diff --git a/nixnet/_session/intf.py b/nixnet/_session/intf.py index 8454fcf9..81026383 100644 --- a/nixnet/_session/intf.py +++ b/nixnet/_session/intf.py @@ -515,257 +515,6 @@ def can_disable_prot_exception_handling(self, value): # type: (bool) -> None _props.set_session_intf_can_disable_prot_exception_handling(self._handle, value) - @property - def flex_ray_acc_start_rng(self): - return _props.get_session_intf_flex_ray_acc_start_rng(self._handle) - - @flex_ray_acc_start_rng.setter - def flex_ray_acc_start_rng(self, value): - _props.set_session_intf_flex_ray_acc_start_rng(self._handle, value) - - @property - def flex_ray_alw_hlt_clk(self): - return _props.get_session_intf_flex_ray_alw_hlt_clk(self._handle) - - @flex_ray_alw_hlt_clk.setter - def flex_ray_alw_hlt_clk(self, value): - _props.set_session_intf_flex_ray_alw_hlt_clk(self._handle, value) - - @property - def flex_ray_alw_pass_act(self): - return _props.get_session_intf_flex_ray_alw_pass_act(self._handle) - - @flex_ray_alw_pass_act.setter - def flex_ray_alw_pass_act(self, value): - _props.set_session_intf_flex_ray_alw_pass_act(self._handle, value) - - @property - def flex_ray_auto_aslp_whn_stp(self): - return _props.get_session_intf_flex_ray_auto_aslp_whn_stp(self._handle) - - @flex_ray_auto_aslp_whn_stp.setter - def flex_ray_auto_aslp_whn_stp(self, value): - _props.set_session_intf_flex_ray_auto_aslp_whn_stp(self._handle, value) - - @property - def flex_ray_clst_drift_dmp(self): - return _props.get_session_intf_flex_ray_clst_drift_dmp(self._handle) - - @flex_ray_clst_drift_dmp.setter - def flex_ray_clst_drift_dmp(self, value): - _props.set_session_intf_flex_ray_clst_drift_dmp(self._handle, value) - - @property - def flex_ray_coldstart(self): - return _props.get_session_intf_flex_ray_coldstart(self._handle) - - @property - def flex_ray_dec_corr(self): - return _props.get_session_intf_flex_ray_dec_corr(self._handle) - - @flex_ray_dec_corr.setter - def flex_ray_dec_corr(self, value): - _props.set_session_intf_flex_ray_dec_corr(self._handle, value) - - @property - def flex_ray_delay_comp_a(self): - return _props.get_session_intf_flex_ray_delay_comp_a(self._handle) - - @flex_ray_delay_comp_a.setter - def flex_ray_delay_comp_a(self, value): - _props.set_session_intf_flex_ray_delay_comp_a(self._handle, value) - - @property - def flex_ray_delay_comp_b(self): - return _props.get_session_intf_flex_ray_delay_comp_b(self._handle) - - @flex_ray_delay_comp_b.setter - def flex_ray_delay_comp_b(self, value): - _props.set_session_intf_flex_ray_delay_comp_b(self._handle, value) - - @property - def flex_ray_key_slot_id(self): - return _props.get_session_intf_flex_ray_key_slot_id(self._handle) - - @flex_ray_key_slot_id.setter - def flex_ray_key_slot_id(self, value): - _props.set_session_intf_flex_ray_key_slot_id(self._handle, value) - - @property - def flex_ray_latest_tx(self): - return _props.get_session_intf_flex_ray_latest_tx(self._handle) - - @property - def flex_ray_list_timo(self): - return _props.get_session_intf_flex_ray_list_timo(self._handle) - - @flex_ray_list_timo.setter - def flex_ray_list_timo(self, value): - _props.set_session_intf_flex_ray_list_timo(self._handle, value) - - @property - def flex_ray_mac_init_off_a(self): - return _props.get_session_intf_flex_ray_mac_init_off_a(self._handle) - - @flex_ray_mac_init_off_a.setter - def flex_ray_mac_init_off_a(self, value): - _props.set_session_intf_flex_ray_mac_init_off_a(self._handle, value) - - @property - def flex_ray_mac_init_off_b(self): - return _props.get_session_intf_flex_ray_mac_init_off_b(self._handle) - - @flex_ray_mac_init_off_b.setter - def flex_ray_mac_init_off_b(self, value): - _props.set_session_intf_flex_ray_mac_init_off_b(self._handle, value) - - @property - def flex_ray_mic_init_off_a(self): - return _props.get_session_intf_flex_ray_mic_init_off_a(self._handle) - - @flex_ray_mic_init_off_a.setter - def flex_ray_mic_init_off_a(self, value): - _props.set_session_intf_flex_ray_mic_init_off_a(self._handle, value) - - @property - def flex_ray_mic_init_off_b(self): - return _props.get_session_intf_flex_ray_mic_init_off_b(self._handle) - - @flex_ray_mic_init_off_b.setter - def flex_ray_mic_init_off_b(self, value): - _props.set_session_intf_flex_ray_mic_init_off_b(self._handle, value) - - @property - def flex_ray_max_drift(self): - return _props.get_session_intf_flex_ray_max_drift(self._handle) - - @flex_ray_max_drift.setter - def flex_ray_max_drift(self, value): - _props.set_session_intf_flex_ray_max_drift(self._handle, value) - - @property - def flex_ray_microtick(self): - return _props.get_session_intf_flex_ray_microtick(self._handle) - - @property - def flex_ray_null_to_in_strm(self): - return _props.get_session_intf_flex_ray_null_to_in_strm(self._handle) - - @flex_ray_null_to_in_strm.setter - def flex_ray_null_to_in_strm(self, value): - _props.set_session_intf_flex_ray_null_to_in_strm(self._handle, value) - - @property - def flex_ray_off_corr(self): - return _props.get_session_intf_flex_ray_off_corr(self._handle) - - @property - def flex_ray_off_corr_out(self): - return _props.get_session_intf_flex_ray_off_corr_out(self._handle) - - @flex_ray_off_corr_out.setter - def flex_ray_off_corr_out(self, value): - _props.set_session_intf_flex_ray_off_corr_out(self._handle, value) - - @property - def flex_ray_rate_corr(self): - return _props.get_session_intf_flex_ray_rate_corr(self._handle) - - @property - def flex_ray_rate_corr_out(self): - return _props.get_session_intf_flex_ray_rate_corr_out(self._handle) - - @flex_ray_rate_corr_out.setter - def flex_ray_rate_corr_out(self, value): - _props.set_session_intf_flex_ray_rate_corr_out(self._handle, value) - - @property - def flex_ray_samp_per_micro(self): - return _props.get_session_intf_flex_ray_samp_per_micro(self._handle) - - @flex_ray_samp_per_micro.setter - def flex_ray_samp_per_micro(self, value): - _props.set_session_intf_flex_ray_samp_per_micro(self._handle, value) - - @property - def flex_ray_sing_slot_en(self): - return _props.get_session_intf_flex_ray_sing_slot_en(self._handle) - - @flex_ray_sing_slot_en.setter - def flex_ray_sing_slot_en(self, value): - _props.set_session_intf_flex_ray_sing_slot_en(self._handle, value) - - @property - def flex_ray_statistics_en(self): - return _props.get_session_intf_flex_ray_statistics_en(self._handle) - - @flex_ray_statistics_en.setter - def flex_ray_statistics_en(self, value): - _props.set_session_intf_flex_ray_statistics_en(self._handle, value) - - @property - def flex_ray_sym_to_in_strm(self): - return _props.get_session_intf_flex_ray_sym_to_in_strm(self._handle) - - @flex_ray_sym_to_in_strm.setter - def flex_ray_sym_to_in_strm(self, value): - _props.set_session_intf_flex_ray_sym_to_in_strm(self._handle, value) - - @property - def flex_ray_sync_ch_a_even(self): - return _props.get_session_intf_flex_ray_sync_ch_a_even(self._handle) - - @property - def flex_ray_sync_ch_a_odd(self): - return _props.get_session_intf_flex_ray_sync_ch_a_odd(self._handle) - - @property - def flex_ray_sync_ch_b_even(self): - return _props.get_session_intf_flex_ray_sync_ch_b_even(self._handle) - - @property - def flex_ray_sync_ch_b_odd(self): - return _props.get_session_intf_flex_ray_sync_ch_b_odd(self._handle) - - @property - def flex_ray_sync_status(self): - return _props.get_session_intf_flex_ray_sync_status(self._handle) - - @property - def flex_ray_term(self): - return _props.get_session_intf_flex_ray_term(self._handle) - - @flex_ray_term.setter - def flex_ray_term(self, value): - _props.set_session_intf_flex_ray_term(self._handle, value) - - @property - def flex_ray_wakeup_ch(self): - return _props.get_session_intf_flex_ray_wakeup_ch(self._handle) - - @flex_ray_wakeup_ch.setter - def flex_ray_wakeup_ch(self, value): - _props.set_session_intf_flex_ray_wakeup_ch(self._handle, value) - - @property - def flex_ray_wakeup_ptrn(self): - return _props.get_session_intf_flex_ray_wakeup_ptrn(self._handle) - - @flex_ray_wakeup_ptrn.setter - def flex_ray_wakeup_ptrn(self, value): - _props.set_session_intf_flex_ray_wakeup_ptrn(self._handle, value) - - def set_flex_ray_sleep(self, value): - _props.set_session_intf_flex_ray_sleep(self._handle, value) - - @property - def flex_ray_connected_chs(self): - return _props.get_session_intf_flex_ray_connected_chs(self._handle) - - @flex_ray_connected_chs.setter - def flex_ray_connected_chs(self, value): - _props.set_session_intf_flex_ray_connected_chs(self._handle, value) - @property def lin_break_length(self): # type: () -> int diff --git a/nixnet/db/_cluster.py b/nixnet/db/_cluster.py index 9eb57c44..ae7d78b3 100644 --- a/nixnet/db/_cluster.py +++ b/nixnet/db/_cluster.py @@ -115,274 +115,6 @@ def can_fd_baud_rate(self): def can_fd_baud_rate(self, value): _props.set_cluster_can_fd_baud_rate64(self._handle, value) - @property - def flex_ray_act_pt_off(self): - return _props.get_cluster_flex_ray_act_pt_off(self._handle) - - @flex_ray_act_pt_off.setter - def flex_ray_act_pt_off(self, value): - _props.set_cluster_flex_ray_act_pt_off(self._handle, value) - - @property - def flex_ray_cas_rx_l_max(self): - return _props.get_cluster_flex_ray_cas_rx_l_max(self._handle) - - @flex_ray_cas_rx_l_max.setter - def flex_ray_cas_rx_l_max(self, value): - _props.set_cluster_flex_ray_cas_rx_l_max(self._handle, value) - - @property - def flex_ray_channels(self): - return _props.get_cluster_flex_ray_channels(self._handle) - - @flex_ray_channels.setter - def flex_ray_channels(self, value): - _props.set_cluster_flex_ray_channels(self._handle, value) - - @property - def flex_ray_clst_drift_dmp(self): - return _props.get_cluster_flex_ray_clst_drift_dmp(self._handle) - - @flex_ray_clst_drift_dmp.setter - def flex_ray_clst_drift_dmp(self, value): - _props.set_cluster_flex_ray_clst_drift_dmp(self._handle, value) - - @property - def flex_ray_cold_st_ats(self): - return _props.get_cluster_flex_ray_cold_st_ats(self._handle) - - @flex_ray_cold_st_ats.setter - def flex_ray_cold_st_ats(self, value): - _props.set_cluster_flex_ray_cold_st_ats(self._handle, value) - - @property - def flex_ray_cycle(self): - return _props.get_cluster_flex_ray_cycle(self._handle) - - @flex_ray_cycle.setter - def flex_ray_cycle(self, value): - _props.set_cluster_flex_ray_cycle(self._handle, value) - - @property - def flex_ray_dyn_seg_start(self): - return _props.get_cluster_flex_ray_dyn_seg_start(self._handle) - - @property - def flex_ray_dyn_slot_idl_ph(self): - return _props.get_cluster_flex_ray_dyn_slot_idl_ph(self._handle) - - @flex_ray_dyn_slot_idl_ph.setter - def flex_ray_dyn_slot_idl_ph(self, value): - _props.set_cluster_flex_ray_dyn_slot_idl_ph(self._handle, value) - - @property - def flex_ray_latest_usable_dyn(self): - return _props.get_cluster_flex_ray_latest_usable_dyn(self._handle) - - @property - def flex_ray_latest_guar_dyn(self): - return _props.get_cluster_flex_ray_latest_guar_dyn(self._handle) - - @property - def flex_ray_lis_noise(self): - return _props.get_cluster_flex_ray_lis_noise(self._handle) - - @flex_ray_lis_noise.setter - def flex_ray_lis_noise(self, value): - _props.set_cluster_flex_ray_lis_noise(self._handle, value) - - @property - def flex_ray_macro_per_cycle(self): - return _props.get_cluster_flex_ray_macro_per_cycle(self._handle) - - @flex_ray_macro_per_cycle.setter - def flex_ray_macro_per_cycle(self, value): - _props.set_cluster_flex_ray_macro_per_cycle(self._handle, value) - - @property - def flex_ray_macrotick(self): - return _props.get_cluster_flex_ray_macrotick(self._handle) - - @property - def flex_ray_max_wo_clk_cor_fat(self): - return _props.get_cluster_flex_ray_max_wo_clk_cor_fat(self._handle) - - @flex_ray_max_wo_clk_cor_fat.setter - def flex_ray_max_wo_clk_cor_fat(self, value): - _props.set_cluster_flex_ray_max_wo_clk_cor_fat(self._handle, value) - - @property - def flex_ray_max_wo_clk_cor_pas(self): - return _props.get_cluster_flex_ray_max_wo_clk_cor_pas(self._handle) - - @flex_ray_max_wo_clk_cor_pas.setter - def flex_ray_max_wo_clk_cor_pas(self, value): - _props.set_cluster_flex_ray_max_wo_clk_cor_pas(self._handle, value) - - @property - def flex_ray_minislot_act_pt(self): - return _props.get_cluster_flex_ray_minislot_act_pt(self._handle) - - @flex_ray_minislot_act_pt.setter - def flex_ray_minislot_act_pt(self, value): - _props.set_cluster_flex_ray_minislot_act_pt(self._handle, value) - - @property - def flex_ray_minislot(self): - return _props.get_cluster_flex_ray_minislot(self._handle) - - @flex_ray_minislot.setter - def flex_ray_minislot(self, value): - _props.set_cluster_flex_ray_minislot(self._handle, value) - - @property - def flex_ray_nm_vec_len(self): - return _props.get_cluster_flex_ray_nm_vec_len(self._handle) - - @flex_ray_nm_vec_len.setter - def flex_ray_nm_vec_len(self, value): - _props.set_cluster_flex_ray_nm_vec_len(self._handle, value) - - @property - def flex_ray_nit(self): - return _props.get_cluster_flex_ray_nit(self._handle) - - @flex_ray_nit.setter - def flex_ray_nit(self, value): - _props.set_cluster_flex_ray_nit(self._handle, value) - - @property - def flex_ray_nit_start(self): - return _props.get_cluster_flex_ray_nit_start(self._handle) - - @property - def flex_ray_num_minislt(self): - return _props.get_cluster_flex_ray_num_minislt(self._handle) - - @flex_ray_num_minislt.setter - def flex_ray_num_minislt(self, value): - _props.set_cluster_flex_ray_num_minislt(self._handle, value) - - @property - def flex_ray_num_stat_slt(self): - return _props.get_cluster_flex_ray_num_stat_slt(self._handle) - - @flex_ray_num_stat_slt.setter - def flex_ray_num_stat_slt(self, value): - _props.set_cluster_flex_ray_num_stat_slt(self._handle, value) - - @property - def flex_ray_off_cor_st(self): - return _props.get_cluster_flex_ray_off_cor_st(self._handle) - - @flex_ray_off_cor_st.setter - def flex_ray_off_cor_st(self, value): - _props.set_cluster_flex_ray_off_cor_st(self._handle, value) - - @property - def flex_ray_payld_len_dyn_max(self): - return _props.get_cluster_flex_ray_payld_len_dyn_max(self._handle) - - @flex_ray_payld_len_dyn_max.setter - def flex_ray_payld_len_dyn_max(self, value): - _props.set_cluster_flex_ray_payld_len_dyn_max(self._handle, value) - - @property - def flex_ray_payld_len_max(self): - return _props.get_cluster_flex_ray_payld_len_max(self._handle) - - @property - def flex_ray_payld_len_st(self): - return _props.get_cluster_flex_ray_payld_len_st(self._handle) - - @flex_ray_payld_len_st.setter - def flex_ray_payld_len_st(self, value): - _props.set_cluster_flex_ray_payld_len_st(self._handle, value) - - @property - def flex_ray_stat_slot(self): - return _props.get_cluster_flex_ray_stat_slot(self._handle) - - @flex_ray_stat_slot.setter - def flex_ray_stat_slot(self, value): - _props.set_cluster_flex_ray_stat_slot(self._handle, value) - - @property - def flex_ray_sym_win(self): - return _props.get_cluster_flex_ray_sym_win(self._handle) - - @flex_ray_sym_win.setter - def flex_ray_sym_win(self, value): - _props.set_cluster_flex_ray_sym_win(self._handle, value) - - @property - def flex_ray_sym_win_start(self): - return _props.get_cluster_flex_ray_sym_win_start(self._handle) - - @property - def flex_ray_sync_node_max(self): - return _props.get_cluster_flex_ray_sync_node_max(self._handle) - - @flex_ray_sync_node_max.setter - def flex_ray_sync_node_max(self, value): - _props.set_cluster_flex_ray_sync_node_max(self._handle, value) - - @property - def flex_ray_tss_tx(self): - return _props.get_cluster_flex_ray_tss_tx(self._handle) - - @flex_ray_tss_tx.setter - def flex_ray_tss_tx(self, value): - _props.set_cluster_flex_ray_tss_tx(self._handle, value) - - @property - def flex_ray_wake_sym_rx_idl(self): - return _props.get_cluster_flex_ray_wake_sym_rx_idl(self._handle) - - @flex_ray_wake_sym_rx_idl.setter - def flex_ray_wake_sym_rx_idl(self, value): - _props.set_cluster_flex_ray_wake_sym_rx_idl(self._handle, value) - - @property - def flex_ray_wake_sym_rx_low(self): - return _props.get_cluster_flex_ray_wake_sym_rx_low(self._handle) - - @flex_ray_wake_sym_rx_low.setter - def flex_ray_wake_sym_rx_low(self, value): - _props.set_cluster_flex_ray_wake_sym_rx_low(self._handle, value) - - @property - def flex_ray_wake_sym_rx_win(self): - return _props.get_cluster_flex_ray_wake_sym_rx_win(self._handle) - - @flex_ray_wake_sym_rx_win.setter - def flex_ray_wake_sym_rx_win(self, value): - _props.set_cluster_flex_ray_wake_sym_rx_win(self._handle, value) - - @property - def flex_ray_wake_sym_tx_idl(self): - return _props.get_cluster_flex_ray_wake_sym_tx_idl(self._handle) - - @flex_ray_wake_sym_tx_idl.setter - def flex_ray_wake_sym_tx_idl(self, value): - _props.set_cluster_flex_ray_wake_sym_tx_idl(self._handle, value) - - @property - def flex_ray_wake_sym_tx_low(self): - return _props.get_cluster_flex_ray_wake_sym_tx_low(self._handle) - - @flex_ray_wake_sym_tx_low.setter - def flex_ray_wake_sym_tx_low(self, value): - _props.set_cluster_flex_ray_wake_sym_tx_low(self._handle, value) - - @property - def flex_ray_use_wakeup(self): - return _props.get_cluster_flex_ray_use_wakeup(self._handle) - - @flex_ray_use_wakeup.setter - def flex_ray_use_wakeup(self, value): - _props.set_cluster_flex_ray_use_wakeup(self._handle, value) - @property def lin_schedules(self): return _props.get_cluster_lin_schedules(self._handle) @@ -395,14 +127,6 @@ def lin_tick(self): def lin_tick(self, value): _props.set_cluster_lin_tick(self._handle, value) - @property - def flex_ray_alw_pass_act(self): - return _props.get_cluster_flex_ray_alw_pass_act(self._handle) - - @flex_ray_alw_pass_act.setter - def flex_ray_alw_pass_act(self, value): - _props.set_cluster_flex_ray_alw_pass_act(self._handle, value) - @property def application_protocol(self): return constants.AppProtocol(_props.get_cluster_application_protocol(self._handle)) diff --git a/nixnet/db/_ecu.py b/nixnet/db/_ecu.py index 645551c6..e1d1fdc5 100644 --- a/nixnet/db/_ecu.py +++ b/nixnet/db/_ecu.py @@ -69,38 +69,6 @@ def tx_frm_refs(self): def tx_frm_refs(self, value): _props.set_ecu_tx_frm_refs(self._handle, value) - @property - def flex_ray_is_coldstart(self): - return _props.get_ecu_flex_ray_is_coldstart(self._handle) - - @property - def flex_ray_startup_frame_ref(self): - return _props.get_ecu_flex_ray_startup_frame_ref(self._handle) - - @property - def flex_ray_wakeup_ptrn(self): - return _props.get_ecu_flex_ray_wakeup_ptrn(self._handle) - - @flex_ray_wakeup_ptrn.setter - def flex_ray_wakeup_ptrn(self, value): - _props.set_ecu_flex_ray_wakeup_ptrn(self._handle, value) - - @property - def flex_ray_wakeup_chs(self): - return _props.get_ecu_flex_ray_wakeup_chs(self._handle) - - @flex_ray_wakeup_chs.setter - def flex_ray_wakeup_chs(self, value): - _props.set_ecu_flex_ray_wakeup_chs(self._handle, value) - - @property - def flex_ray_connected_chs(self): - return _props.get_ecu_flex_ray_connected_chs(self._handle) - - @flex_ray_connected_chs.setter - def flex_ray_connected_chs(self, value): - _props.set_ecu_flex_ray_connected_chs(self._handle, value) - @property def lin_master(self): return _props.get_ecu_lin_master(self._handle) diff --git a/nixnet/db/_frame.py b/nixnet/db/_frame.py index 8da6ecec..c4401c25 100644 --- a/nixnet/db/_frame.py +++ b/nixnet/db/_frame.py @@ -114,82 +114,6 @@ def can_tx_time(self): def can_tx_time(self, value): _props.set_frame_can_tx_time(self._handle, value) - @property - def flex_ray_base_cycle(self): - return _props.get_frame_flex_ray_base_cycle(self._handle) - - @flex_ray_base_cycle.setter - def flex_ray_base_cycle(self, value): - _props.set_frame_flex_ray_base_cycle(self._handle, value) - - @property - def flex_ray_ch_assign(self): - return _props.get_frame_flex_ray_ch_assign(self._handle) - - @flex_ray_ch_assign.setter - def flex_ray_ch_assign(self, value): - _props.set_frame_flex_ray_ch_assign(self._handle, value) - - @property - def flex_ray_cycle_rep(self): - return _props.get_frame_flex_ray_cycle_rep(self._handle) - - @flex_ray_cycle_rep.setter - def flex_ray_cycle_rep(self, value): - _props.set_frame_flex_ray_cycle_rep(self._handle, value) - - @property - def flex_ray_preamble(self): - return _props.get_frame_flex_ray_preamble(self._handle) - - @flex_ray_preamble.setter - def flex_ray_preamble(self, value): - _props.set_frame_flex_ray_preamble(self._handle, value) - - @property - def flex_ray_startup(self): - return _props.get_frame_flex_ray_startup(self._handle) - - @flex_ray_startup.setter - def flex_ray_startup(self, value): - _props.set_frame_flex_ray_startup(self._handle, value) - - @property - def flex_ray_sync(self): - return _props.get_frame_flex_ray_sync(self._handle) - - @flex_ray_sync.setter - def flex_ray_sync(self, value): - _props.set_frame_flex_ray_sync(self._handle, value) - - @property - def flex_ray_timing_type(self): - return _props.get_frame_flex_ray_timing_type(self._handle) - - @flex_ray_timing_type.setter - def flex_ray_timing_type(self, value): - _props.set_frame_flex_ray_timing_type(self._handle, value) - - @property - def flex_ray_in_cyc_rep_enabled(self): - return _props.get_frame_flex_ray_in_cyc_rep_enabled(self._handle) - - @property - def flex_ray_in_cyc_rep_i_ds(self): - return _props.get_frame_flex_ray_in_cyc_rep_i_ds(self._handle) - - @flex_ray_in_cyc_rep_i_ds.setter - def flex_ray_in_cyc_rep_i_ds(self, value): - _props.set_frame_flex_ray_in_cyc_rep_i_ds(self._handle, value) - - @property - def flex_ray_in_cyc_rep_ch_assigns(self): - return _props.get_frame_flex_ray_in_cyc_rep_ch_assigns(self._handle) - - @flex_ray_in_cyc_rep_ch_assigns.setter - def flex_ray_in_cyc_rep_ch_assigns(self, value): - _props.set_frame_flex_ray_in_cyc_rep_ch_assigns(self._handle, value) - @property def lin_checksum(self): return _props.get_frame_lin_checksum(self._handle) diff --git a/nixnet/system/system.py b/nixnet/system/system.py index 3441debc..7e2e8594 100644 --- a/nixnet/system/system.py +++ b/nixnet/system/system.py @@ -85,12 +85,6 @@ def intf_refs_can(self): for ref in _props.get_system_intf_refs_can(self._handle): yield _interface.Interface(ref) - @property - def intf_refs_flex_ray(self): - # type: () -> typing.Iterable[_interface.Interface] - for ref in _props.get_system_intf_refs_flex_ray(self._handle): - yield _interface.Interface(ref) - @property def intf_refs_lin(self): # type: () -> typing.Iterable[_interface.Interface] diff --git a/tests/test_system.py b/tests/test_system.py index 7c711c46..a16c5cc1 100644 --- a/tests/test_system.py +++ b/tests/test_system.py @@ -49,9 +49,9 @@ def test_system_intf_refs_superset(can_in_interface, can_out_interface): with system.System() as sys: intfs = set(sys.intf_refs_all) can_intfs = set(sys.intf_refs_can) - flex_ray_intfs = set(sys.intf_refs_flex_ray) lin_intfs = set(sys.intf_refs_lin) - assert intfs == can_intfs | flex_ray_intfs | lin_intfs + # Subset because of missing flex-ray + assert intfs >= can_intfs | lin_intfs @pytest.mark.integration