Class Reg
Defined in File tle5012b_reg.py
Class Documentation
- class Reg
Public Functions
- __init__(self, parent)
- get_bit_field(self, bit_field)
- set_bit_field(self, bit_field, bit_f_new_value)
- is_status_reset(self)
- is_status_watch_dog(self)
- is_status_voltage(self)
- is_status_fuse(self)
- is_status_dspu(self)
- is_status_overflow(self)
- is_status_xy_out_of_limit(self)
- is_status_magnitude_out_of_limit(self)
- is_status_adc(self)
- is_status_rom(self)
- is_status_gmrxy(self)
- is_status_gmra(self)
- is_status_read(self)
- get_slave_number(self)
- set_slave_number(self, snr)
- is_activation_reset(self)
- set_activation_reset(self)
- enable_watchdog(self)
- disable_watchdog(self)
- is_watchdog(self)
- enable_voltage_check(self)
- disable_voltage_check(self)
- is_voltage_check(self)
- enable_fuse_crc(self)
- disable_fuse_crc(self)
- is_fuse_crc(self)
- enable_dspu_bist(self)
- disable_dspu_bist(self)
- is_dspu_bist(self)
- enable_dspu_overflow(self)
- disable_dspu_overflow(self)
- is_dspu_overflow(self)
- enable_xy_check(self)
- disable_xy_check(self)
- is_xy_check(self)
- enable_gmr_check(self)
- disable_gmr_check(self)
- is_gmr_check(self)
- enable_adc_check(self)
- disable_adc_check(self)
- is_adc_check(self)
- activate_firmware_reset(self)
- is_firmware_reset(self)
- is_angle_value_new(self)
- get_angle_value(self)
- is_speed_value_new(self)
- get_speed_value(self)
- is_number_of_revolutions_new(self)
- get_number_of_revolutions(self)
- get_frame_counter(self)
- set_frame_counter(self, fcnt)
- get_frame_sync_counter(self)
- set_frame_sync_counter(self, fsync)
- get_temperature_value(self)
- set_filter_decimation(self, firmd)
- get_filter_decimation(self)
- set_iif_mod(self, iifmod)
- get_iif_mod(self)
- hold_dspu(self)
- release_dspu(self)
- is_dspu_hold(self)
- set_internal_clock(self)
- set_external_clock(self)
- status_clock_source(self)
- enable_filter_parallel(self)
- disable_filter_parallel(self)
- is_filter_parallel(self)
- enable_filter_inverted(self)
- disable_filter_inverted(self)
- is_filter_inverted(self)
- enable_adc_test_vector(self)
- disable_adc_test_vector(self)
- is_adc_test_vector(self)
- set_fuse_reload(self)
- get_fuse_reload(self)
- set_test_vector_x(self, adctvx)
- get_test_vector_x(self)
- set_test_vector_y(self, adctvy)
- get_test_vector_y(self)
- direction_clockwise(self)
- direction_counter_clockwise(self)
- is_angle_direction(self)
- enable_prediction(self)
- disable_prediction(self)
- is_prediction(self)
- set_angle_range(self, range)
- get_angle_range(self)
- set_calibration_mode(self, autocal)
- get_calibration_mode(self)
- enable_spike_filter(self)
- disable_spike_filter(self)
- is_spike_filter(self)
- enable_ssc_open_drain(self)
- enable_ssc_push_pull(self)
- is_ssc_output_mode(self)
- set_angle_base(self, base)
- get_angle_base(self)
- set_pad_driver(self, pad)
- get_pad_driver(self)
- set_offset_x(self, offx)
- get_offset_x(self)
- set_offset_y(self, offy)
- get_offset_y(self)
- set_amplitude_synch(self, synch)
- get_amplitude_synch(self)
- set_fir_update_rate(self, fir)
- get_fir_update_rate(self)
- enable_ifab_open_drain(self)
- enable_ifab_push_pull(self)
- is_ifab_output_mode(self)
- set_orthogonality(self, ortho)
- get_orthogonality(self)
- set_hysteresis_mode(self, hyst)
- get_hysteresis_mode(self)
- set_interface_mode(self, ifmd)
- get_interface_mode(self)
- set_ifab_res(self, res)
- get_ifab_res(self)
- set_hsm_plp(self, plp)
- get_hsm_plp(self)
- set_offset_temperature_x(self, tcox)
- get_offset_temperature_x(self)
- set_offset_temperature_y(self, tcoy)
- get_offset_temperature_y(self)
- enable_startup_bist(self)
- disable_startup_bist(self)
- is_startup_bist(self)
- set_crc_par(self, crc)
- get_crc_par(self)
- get_adc_x(self)
- get_adc_y(self)
- get_vector_magnitude(self)
- get_temperature_raw(self)
- is_temperature_toggle(self)
- get_counter_increments(self)
- get_t25_offset(self)
Public Static Attributes
- noAutoCal = 0x0
- mode1 = 0x1
- mode2 = 0x2
- mode3 = 0x3
- factor1 = 0x080
- factor4 = 0x200
- factor5 = 0x040
- TLE5012B_E1000 = 0x01
- TLE5012B_E3005 = 0x02
- TLE5012B_E5000 = 0x03
- TLE5012B_E5020 = 0x04
- TLE5012B_E9000 = 0x05
- REG_ACCESS_R = 0x01
- REG_ACCESS_W = 0x02
- REG_ACCESS_RW = 0x03
- REG_ACCESS_U = 0x04
- REG_ACCESS_RU = 0x05
- REG_ACCESS_RWU = 0x07
- REG_ACCESS_RES = 0x10
- REG_STAT = 0x0000
- REG_ACSTAT = 0x0010
- REG_AVAL = 0x0020
- REG_ASPD = 0x0030
- REG_AREV = 0x0040
- REG_FSYNC = 0x0050
- REG_MOD_1 = 0x0060
- REG_SIL = 0x0070
- REG_MOD_2 = 0x0080
- REG_MOD_3 = 0x0090
- REG_OFFX = 0x00A0
- REG_OFFY = 0x00B0
- REG_SYNCH = 0x00C0
- REG_IFAB = 0x00D0
- REG_MOD_4 = 0x00E0
- REG_TCO_Y = 0x00F0
- REG_ADC_X = 0x0100
- REG_ADC_Y = 0x0110
- REG_D_MAG = 0x0140
- REG_T_RAW = 0x0150
- REG_IIF_CNT = 0x0200
- REG_T25O = 0x0300
- REG_STAT_SRST = 0x00
- REG_STAT_SWD = 0x01
- REG_STAT_SVR = 0x02
- REG_STAT_SFUSE = 0x03
- REG_STAT_SDSPU = 0x04
- REG_STAT_SOV = 0x05
- REG_STAT_SXYOL = 0x06
- REG_STAT_SMAGOL = 0x07
- REG_STAT_RESERVED = 0x08
- REG_STAT_SADCT = 0x09
- REG_STAT_SROM = 0x0A
- REG_STAT_NOGMRXY = 0x0B
- REG_STAT_NOGMRA = 0x0C
- REG_STAT_SNR = 0x0D
- REG_STAT_RDST = 0x0E
- REG_ACSTAT_ASRST = 0x0F
- REG_ACSTAT_ASWD = 0x10
- REG_ACSTAT_ASVR = 0x11
- REG_ACSTAT_ASFUSE = 0x12
- REG_ACSTAT_ASDSPU = 0x13
- REG_ACSTAT_ASOV = 0x14
- REG_ACSTAT_ASVECXY = 0x15
- REG_ACSTAT_ASVEGMAG = 0x16
- REG_ACSTAT_RESERVED1 = 0x17
- REG_ACSTAT_ASADCT = 0x18
- REG_ACSTAT_ASFRST = 0x19
- REG_ACSTAT_RESERVED2 = 0x1A
- REG_AVAL_ANGVAL = 0x1B
- REG_AVAL_RDAV = 0x1C
- REG_ASPD_ANGSPD = 0x1D
- REG_ASPD_RDAS = 0x1E
- REG_AREV_REVOL = 0x1F
- REG_AREV_FCNT = 0x20
- REG_AREV_RDREV = 0x21
- REG_FSYNC_TEMPR = 0x22
- REG_FSYNC_FSYNC = 0x231
- REG_MOD_1_IIFMOD = 0x24
- REG_MOD_1_DSPUHOLD = 0x25
- REG_MOD_1_RESERVED1 = 0x26
- REG_MOD_1_CLKSEL = 0x27
- REG_MOD_1_RESERVED2 = 0x28
- REG_MOD_1_FIRMD = 0x29
- REG_SIL_ADCTVX = 0x2A
- REG_SIL_ADCTVY = 0x2B
- REG_SIL_ADCTVEN = 0x2C
- REG_SIL_RESERVED1 = 0x2D
- REG_SIL_FUSEREL = 0x2E
- REG_SIL_RESERVED2 = 0x2F
- REG_SIL_FILTINV = 0x30
- REG_SIL_FILTPAR = 0x31
- REG_MOD_2_AUTOCAL = 0x32
- REG_MOD_2_PREDICT = 0x33
- REG_MOD_2_ANGDIR = 0x34
- REG_MOD_2_ANGRANGE = 0x35
- REG_MOD_2_RESERVED1 = 0x36
- REG_MOD_3_PADDRV = 0x37
- REG_MOD_3_SSCOD = 0x38
- REG_MOD_3_SPIKEF = 0x39
- REG_MOD_3_ANG_BASE = 0x3A
- REG_OFFX_RESERVED1 = 0x3B
- REG_OFFX_XOFFSET = 0x3C
- REG_OFFY_RESERVED1 = 0x3D
- REG_OFFY_YOFFSET = 0x3E
- REG_SYNCH_RESERVED1 = 0x3F
- REG_SYNCH_SYNCH = 0x40
- REG_IFAB_IFADHYST = 0x41
- REG_IFAB_IFABOD = 0x42
- REG_IFAB_FIRUDR = 0x43
- REG_IFAB_ORTHO = 0x44
- REG_MOD_4_IFMD = 0x45
- REG_MOD_4_RESERVED1 = 0x46
- REG_MOD_4_IFABRES = 0x47
- REG_MOD_4_HSMPLP = 0x48
- REG_MOD_4_TCOXT = 0x49
- REG_TCO_Y_CRCPAR = 0x4A
- REG_TCO_Y_SBIST = 0x4B
- REG_TCO_Y_TCOYT = 0x4C
- REG_ADC_X_ADCX = 0x4D
- REG_ADC_Y_ADCY = 0x4E
- REG_D_MAG_MAG = 0x4F
- REG_D_MAG_RESERVED1 = 0x50
- REG_T_RAW_TRAW = 0x51
- REG_T_RAW_RESERVED1 = 0x52
- REG_T_RAW_TTGL = 0x53
- REG_IIF_CNT_IIFCNT = 0x54
- REG_IIF_CNT_RESERVED1 = 0x55
- REG_T25O_T250 = 0x56
- REG_T25O_RESERVED1 = 0x57
- addrFields = [(REG_STAT, 1 ), # @brief STAT status register(REG_ACSTAT, 2 ), # @brief ACSTAT activation status register(REG_AVAL, 3 ), # @brief AVAL angle value register(REG_ASPD, 4 ), # @brief ASPD angle speed register(REG_AREV, 5 ), # @brief AREV angle revolution register(REG_FSYNC, 6 ), # @brief FSYNC frame synchronization register(REG_MOD_1, 7 ), # @brief MOD_1 interface mode1register(REG_SIL, 8 ), # @brief SIL register(REG_MOD_2, 9 ), # @brief MOD_2 interface mode2register(REG_MOD_3, 10 ), # @brief MOD_3 interface mode3register(REG_OFFX, 11 ), # @brief OFFX offset x(REG_OFFY, 12 ), # @brief OFFY offset y(REG_SYNCH, 13 ), # @brief SYNCH synchronicity(REG_IFAB, 14 ), # @brief IFAB register(REG_MOD_4, 15 ), # @brief MOD_4 interface mode4 register(REG_TCO_Y, 16 ), # @brief TCO_Y temperature coefficient register(REG_ADC_X, 17 ), # @brief ADC_X ADC X-raw value(REG_ADC_Y, 18 ), # @brief ADC_Y ADC Y-raw value(REG_D_MAG, 19 ), # @brief D_MAG angle vector magnitude(REG_T_RAW, 20 ), # @brief T_RAW temperature sensorraw-value(REG_IIF_CNT, 21 ), # @brief IIF_CNT IIF counter value(REG_T25O, 22 ), # @brief T25O temperature 25°c offset value]
- bitFields
- MAX_REGISTER_MEM = 22
- UPD_low = 0x0000
- UPD_high = 0x0400
- SAFE_low = 0x0000
- SAFE_high = 0x0001