LibDriver AS5600
Loading...
Searching...
No Matches
as5600 base driver function

as5600 base driver modules More...

Collaboration diagram for as5600 base driver function:

Data Structures

struct  as5600_handle_s
 as5600 handle structure definition More...
struct  as5600_info_s
 as5600 information structure definition More...

Typedefs

typedef struct as5600_handle_s as5600_handle_t
 as5600 handle structure definition
typedef struct as5600_info_s as5600_info_t
 as5600 information structure definition

Enumerations

enum  as5600_bool_t { AS5600_BOOL_FALSE = 0x00 , AS5600_BOOL_TRUE = 0x01 }
 as5600 bool enumeration definition More...
enum  as5600_power_mode_t { AS5600_POWER_MODE_NOM = 0x00 , AS5600_POWER_MODE_LPM1 = 0x01 , AS5600_POWER_MODE_LPM2 = 0x02 , AS5600_POWER_MODE_LPM3 = 0x03 }
 as5600 power mode enumeration definition More...
enum  as5600_hysteresis_t { AS5600_HYSTERESIS_OFF = 0x00 , AS5600_HYSTERESIS_1LSB = 0x01 , AS5600_HYSTERESIS_2LSB = 0x02 , AS5600_HYSTERESIS_3LSB = 0x03 }
 as5600 hysteresis enumeration definition More...
enum  as5600_output_stage_t { AS5600_OUTPUT_STAGE_ANALOG_FULL = 0x00 , AS5600_OUTPUT_STAGE_ANALOG_REDUCED = 0x01 , AS5600_OUTPUT_STAGE_PWM = 0x02 }
 as5600 output stage enumeration definition More...
enum  as5600_pwm_frequency_t { AS5600_PWM_FREQUENCY_115HZ = 0x00 , AS5600_PWM_FREQUENCY_230HZ = 0x01 , AS5600_PWM_FREQUENCY_460HZ = 0x02 , AS5600_PWM_FREQUENCY_920HZ = 0x03 }
 as5600 pwm frequency enumeration definition More...
enum  as5600_slow_filter_t { AS5600_SLOW_FILTER_16X = 0x00 , AS5600_SLOW_FILTER_8X = 0x01 , AS5600_SLOW_FILTER_4X = 0x02 , AS5600_SLOW_FILTER_2X = 0x03 }
 as5600 slow filter enumeration definition More...
enum  as5600_fast_filter_threshold_t {
  AS5600_FAST_FILTER_THRESHOLD_SLOW_FILTER_ONLY = 0x00 , AS5600_FAST_FILTER_THRESHOLD_6LSB = 0x01 , AS5600_FAST_FILTER_THRESHOLD_7LSB = 0x02 , AS5600_FAST_FILTER_THRESHOLD_9LSB = 0x03 ,
  AS5600_FAST_FILTER_THRESHOLD_10LSB = 0x07 , AS5600_FAST_FILTER_THRESHOLD_18LSB = 0x04 , AS5600_FAST_FILTER_THRESHOLD_21LSB = 0x05 , AS5600_FAST_FILTER_THRESHOLD_24LSB = 0x06
}
 as5600 fast filter threshold enumeration definition More...
enum  as5600_status_t { AS5600_STATUS_MD = (1 << 5) , AS5600_STATUS_ML = (1 << 4) , AS5600_STATUS_MH = (1 << 3) }
 as5600 status enumeration definition More...
enum  as5600_burn_t {
  AS5600_BURN_CMD1 = 0x01 , AS5600_BURN_CMD2 = 0x11 , AS5600_BURN_CMD3 = 0x10 , AS5600_BURN_ANGLE = 0x80 ,
  AS5600_BURN_SETTING = 0x40
}
 as5600 burn enumeration definition More...

Functions

uint8_t as5600_info (as5600_info_t *info)
 get chip's information
uint8_t as5600_init (as5600_handle_t *handle)
 initialize the chip
uint8_t as5600_deinit (as5600_handle_t *handle)
 close the chip
uint8_t as5600_read (as5600_handle_t *handle, uint16_t *angle_raw, float *deg)
 read the magnetic angle
uint8_t as5600_angle_convert_to_register (as5600_handle_t *handle, float deg, uint16_t *reg)
 convert the angle to the register raw data
uint8_t as5600_angle_convert_to_data (as5600_handle_t *handle, uint16_t reg, float *deg)
 convert the register raw data to the angle
uint8_t as5600_set_start_position (as5600_handle_t *handle, uint16_t pos)
 set the start position
uint8_t as5600_get_start_position (as5600_handle_t *handle, uint16_t *pos)
 get the start position
uint8_t as5600_set_stop_position (as5600_handle_t *handle, uint16_t pos)
 set the stop position
uint8_t as5600_get_stop_position (as5600_handle_t *handle, uint16_t *pos)
 get the stop position
uint8_t as5600_set_max_angle (as5600_handle_t *handle, uint16_t ang)
 set the max angle
uint8_t as5600_get_max_angle (as5600_handle_t *handle, uint16_t *ang)
 get the max angle
uint8_t as5600_set_watch_dog (as5600_handle_t *handle, as5600_bool_t enable)
 enable or disable the watch dog
uint8_t as5600_get_watch_dog (as5600_handle_t *handle, as5600_bool_t *enable)
 get the watch dog status
uint8_t as5600_set_fast_filter_threshold (as5600_handle_t *handle, as5600_fast_filter_threshold_t threshold)
 set the fast filter threshold
uint8_t as5600_get_fast_filter_threshold (as5600_handle_t *handle, as5600_fast_filter_threshold_t *threshold)
 get the fast filter threshold
uint8_t as5600_set_slow_filter (as5600_handle_t *handle, as5600_slow_filter_t filter)
 set the slow filter
uint8_t as5600_get_slow_filter (as5600_handle_t *handle, as5600_slow_filter_t *filter)
 get the slow filter
uint8_t as5600_set_pwm_frequency (as5600_handle_t *handle, as5600_pwm_frequency_t freq)
 set the pwm frequency
uint8_t as5600_get_pwm_frequency (as5600_handle_t *handle, as5600_pwm_frequency_t *freq)
 get the pwm frequency
uint8_t as5600_set_output_stage (as5600_handle_t *handle, as5600_output_stage_t stage)
 set the output stage
uint8_t as5600_get_output_stage (as5600_handle_t *handle, as5600_output_stage_t *stage)
 get the output stage
uint8_t as5600_set_hysteresis (as5600_handle_t *handle, as5600_hysteresis_t hysteresis)
 set the hysteresis
uint8_t as5600_get_hysteresis (as5600_handle_t *handle, as5600_hysteresis_t *hysteresis)
 get the hysteresis
uint8_t as5600_set_power_mode (as5600_handle_t *handle, as5600_power_mode_t mode)
 set the power mode
uint8_t as5600_get_power_mode (as5600_handle_t *handle, as5600_power_mode_t *mode)
 get the power mode
uint8_t as5600_get_raw_angle (as5600_handle_t *handle, uint16_t *ang)
 get the raw angle
uint8_t as5600_get_angle (as5600_handle_t *handle, uint16_t *ang)
 get the angle
uint8_t as5600_get_status (as5600_handle_t *handle, uint8_t *status)
 get the status
uint8_t as5600_get_agc (as5600_handle_t *handle, uint8_t *agc)
 get the automatic gain control
uint8_t as5600_get_magnitude (as5600_handle_t *handle, uint16_t *magnitude)
 get the magnitude
uint8_t as5600_set_burn (as5600_handle_t *handle, as5600_burn_t burn)
 set the burn

Detailed Description

as5600 base driver modules

Typedef Documentation

◆ as5600_handle_t

as5600 handle structure definition

◆ as5600_info_t

typedef struct as5600_info_s as5600_info_t

as5600 information structure definition

Enumeration Type Documentation

◆ as5600_bool_t

as5600 bool enumeration definition

Enumerator
AS5600_BOOL_FALSE 

disable

AS5600_BOOL_TRUE 

enable

Definition at line 62 of file driver_as5600.h.

◆ as5600_burn_t

as5600 burn enumeration definition

Enumerator
AS5600_BURN_CMD1 

load the actual otp content command 1

AS5600_BURN_CMD2 

load the actual otp content command 2

AS5600_BURN_CMD3 

load the actual otp content command 3

AS5600_BURN_ANGLE 

angle

AS5600_BURN_SETTING 

setting

Definition at line 150 of file driver_as5600.h.

◆ as5600_fast_filter_threshold_t

as5600 fast filter threshold enumeration definition

Enumerator
AS5600_FAST_FILTER_THRESHOLD_SLOW_FILTER_ONLY 

slow filter only

AS5600_FAST_FILTER_THRESHOLD_6LSB 

6 lsb

AS5600_FAST_FILTER_THRESHOLD_7LSB 

7 lsb

AS5600_FAST_FILTER_THRESHOLD_9LSB 

9 lsb

AS5600_FAST_FILTER_THRESHOLD_10LSB 

10 lsb

AS5600_FAST_FILTER_THRESHOLD_18LSB 

18 lsb

AS5600_FAST_FILTER_THRESHOLD_21LSB 

21 lsb

AS5600_FAST_FILTER_THRESHOLD_24LSB 

24 lsb

Definition at line 125 of file driver_as5600.h.

◆ as5600_hysteresis_t

as5600 hysteresis enumeration definition

Enumerator
AS5600_HYSTERESIS_OFF 

off

AS5600_HYSTERESIS_1LSB 

1 lsb

AS5600_HYSTERESIS_2LSB 

2 lsb

AS5600_HYSTERESIS_3LSB 

3 lsb

Definition at line 82 of file driver_as5600.h.

◆ as5600_output_stage_t

as5600 output stage enumeration definition

Enumerator
AS5600_OUTPUT_STAGE_ANALOG_FULL 

full range from 0% to 100% between gnd and vdd

AS5600_OUTPUT_STAGE_ANALOG_REDUCED 

reduced range from 10% to 90% between gnd and vdd

AS5600_OUTPUT_STAGE_PWM 

digital pwm

Definition at line 93 of file driver_as5600.h.

◆ as5600_power_mode_t

as5600 power mode enumeration definition

Enumerator
AS5600_POWER_MODE_NOM 

normal

AS5600_POWER_MODE_LPM1 

low power 1

AS5600_POWER_MODE_LPM2 

low power 2

AS5600_POWER_MODE_LPM3 

low power 3

Definition at line 71 of file driver_as5600.h.

◆ as5600_pwm_frequency_t

as5600 pwm frequency enumeration definition

Enumerator
AS5600_PWM_FREQUENCY_115HZ 

115Hz

AS5600_PWM_FREQUENCY_230HZ 

230Hz

AS5600_PWM_FREQUENCY_460HZ 

460Hz

AS5600_PWM_FREQUENCY_920HZ 

920Hz

Definition at line 103 of file driver_as5600.h.

◆ as5600_slow_filter_t

as5600 slow filter enumeration definition

Enumerator
AS5600_SLOW_FILTER_16X 

16x

AS5600_SLOW_FILTER_8X 

8x

AS5600_SLOW_FILTER_4X 

4x

AS5600_SLOW_FILTER_2X 

2x

Definition at line 114 of file driver_as5600.h.

◆ as5600_status_t

as5600 status enumeration definition

Enumerator
AS5600_STATUS_MD 

agc minimum gain overflow, magnet too strong

AS5600_STATUS_ML 

agc maximum gain overflow, magnet too weak

AS5600_STATUS_MH 

magnet was detected

Definition at line 140 of file driver_as5600.h.

Function Documentation

◆ as5600_angle_convert_to_data()

uint8_t as5600_angle_convert_to_data ( as5600_handle_t * handle,
uint16_t reg,
float * deg )

convert the register raw data to the angle

Parameters
[in]*handlepointer to an as5600 handle structure
[in]regregister raw data
[out]*degpointer to an angle buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 296 of file driver_as5600.c.

◆ as5600_angle_convert_to_register()

uint8_t as5600_angle_convert_to_register ( as5600_handle_t * handle,
float deg,
uint16_t * reg )

convert the angle to the register raw data

Parameters
[in]*handlepointer to an as5600 handle structure
[in]degangle
[out]*regpointer to a register raw buffer
Returns
status code
  • 0 success
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 269 of file driver_as5600.c.

◆ as5600_deinit()

uint8_t as5600_deinit ( as5600_handle_t * handle)

close the chip

Parameters
[in]*handlepointer to an as5600 handle structure
Returns
status code
  • 0 success
  • 1 iic deinit failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 196 of file driver_as5600.c.

◆ as5600_get_agc()

uint8_t as5600_get_agc ( as5600_handle_t * handle,
uint8_t * agc )

get the automatic gain control

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*agcpointer to an agc buffer
Returns
status code
  • 0 success
  • 1 get agc failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1221 of file driver_as5600.c.

◆ as5600_get_angle()

uint8_t as5600_get_angle ( as5600_handle_t * handle,
uint16_t * ang )

get the angle

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*angpointer to an ang buffer
Returns
status code
  • 0 success
  • 1 get angle failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1149 of file driver_as5600.c.

◆ as5600_get_fast_filter_threshold()

uint8_t as5600_get_fast_filter_threshold ( as5600_handle_t * handle,
as5600_fast_filter_threshold_t * threshold )

get the fast filter threshold

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*thresholdpointer to a fast filter threshold buffer
Returns
status code
  • 0 success
  • 1 get fast filter threshold failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 691 of file driver_as5600.c.

◆ as5600_get_hysteresis()

uint8_t as5600_get_hysteresis ( as5600_handle_t * handle,
as5600_hysteresis_t * hysteresis )

get the hysteresis

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*hysteresispointer to a hysteresis buffer
Returns
status code
  • 0 success
  • 1 get hysteresis failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 999 of file driver_as5600.c.

◆ as5600_get_magnitude()

uint8_t as5600_get_magnitude ( as5600_handle_t * handle,
uint16_t * magnitude )

get the magnitude

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*magnitudepointer to a magnitude buffer
Returns
status code
  • 0 success
  • 1 get magnitude failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1255 of file driver_as5600.c.

◆ as5600_get_max_angle()

uint8_t as5600_get_max_angle ( as5600_handle_t * handle,
uint16_t * ang )

get the max angle

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*angpointer to a max angle buffer
Returns
status code
  • 0 success
  • 1 get max angle failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 534 of file driver_as5600.c.

◆ as5600_get_output_stage()

uint8_t as5600_get_output_stage ( as5600_handle_t * handle,
as5600_output_stage_t * stage )

get the output stage

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*stagepointer to an output stage buffer
Returns
status code
  • 0 success
  • 1 get output stage failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 922 of file driver_as5600.c.

◆ as5600_get_power_mode()

uint8_t as5600_get_power_mode ( as5600_handle_t * handle,
as5600_power_mode_t * mode )

get the power mode

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*modepointer to a power mode buffer
Returns
status code
  • 0 success
  • 1 get power mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1076 of file driver_as5600.c.

◆ as5600_get_pwm_frequency()

uint8_t as5600_get_pwm_frequency ( as5600_handle_t * handle,
as5600_pwm_frequency_t * freq )

get the pwm frequency

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*freqpointer to a pwm frequency buffer
Returns
status code
  • 0 success
  • 1 get pwm frequency failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 845 of file driver_as5600.c.

◆ as5600_get_raw_angle()

uint8_t as5600_get_raw_angle ( as5600_handle_t * handle,
uint16_t * ang )

get the raw angle

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*angpointer to an ang buffer
Returns
status code
  • 0 success
  • 1 get raw angle failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1111 of file driver_as5600.c.

◆ as5600_get_slow_filter()

uint8_t as5600_get_slow_filter ( as5600_handle_t * handle,
as5600_slow_filter_t * filter )

get the slow filter

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*filterpointer to a slow filter buffer
Returns
status code
  • 0 success
  • 1 get slow filter failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 768 of file driver_as5600.c.

◆ as5600_get_start_position()

uint8_t as5600_get_start_position ( as5600_handle_t * handle,
uint16_t * pos )

get the start position

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*pospointer to a start position buffer
Returns
status code
  • 0 success
  • 1 get start position failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 368 of file driver_as5600.c.

◆ as5600_get_status()

uint8_t as5600_get_status ( as5600_handle_t * handle,
uint8_t * status )

get the status

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*statuspointer to a status buffer
Returns
status code
  • 0 success
  • 1 get status failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1187 of file driver_as5600.c.

◆ as5600_get_stop_position()

uint8_t as5600_get_stop_position ( as5600_handle_t * handle,
uint16_t * pos )

get the stop position

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*pospointer to a stop position buffer
Returns
status code
  • 0 success
  • 1 get stop position failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 451 of file driver_as5600.c.

◆ as5600_get_watch_dog()

uint8_t as5600_get_watch_dog ( as5600_handle_t * handle,
as5600_bool_t * enable )

get the watch dog status

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*enablepointer to a bool value buffer
Returns
status code
  • 0 success
  • 1 get watchdog failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 614 of file driver_as5600.c.

◆ as5600_info()

uint8_t as5600_info ( as5600_info_t * info)

get chip's information

Parameters
[out]*infopointer to an as5600 info structure
Returns
status code
  • 0 success
  • 2 handle is NULL
Note
none

Definition at line 1399 of file driver_as5600.c.

◆ as5600_init()

uint8_t as5600_init ( as5600_handle_t * handle)

initialize the chip

Parameters
[in]*handlepointer to an as5600 handle structure
Returns
status code
  • 0 success
  • 1 iic initialization failed
  • 2 handle is NULL
  • 3 linked functions is NULL
Note
none

Definition at line 134 of file driver_as5600.c.

◆ as5600_read()

uint8_t as5600_read ( as5600_handle_t * handle,
uint16_t * angle_raw,
float * deg )

read the magnetic angle

Parameters
[in]*handlepointer to an as5600 handle structure
[out]*angle_rawpointer to a raw angle buffer
[out]*degpointer to a converted angle buffer
Returns
status code
  • 0 success
  • 1 read failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 230 of file driver_as5600.c.

◆ as5600_set_burn()

uint8_t as5600_set_burn ( as5600_handle_t * handle,
as5600_burn_t burn )

set the burn

Parameters
[in]*handlepointer to an as5600 handle structure
[in]burnset command
Returns
status code
  • 0 success
  • 1 set burn failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1293 of file driver_as5600.c.

◆ as5600_set_fast_filter_threshold()

uint8_t as5600_set_fast_filter_threshold ( as5600_handle_t * handle,
as5600_fast_filter_threshold_t threshold )

set the fast filter threshold

Parameters
[in]*handlepointer to an as5600 handle structure
[in]thresholdfast filter threshold
Returns
status code
  • 0 success
  • 1 set fast filter threshold failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 649 of file driver_as5600.c.

◆ as5600_set_hysteresis()

uint8_t as5600_set_hysteresis ( as5600_handle_t * handle,
as5600_hysteresis_t hysteresis )

set the hysteresis

Parameters
[in]*handlepointer to an as5600 handle structure
[in]hysteresisinput hysteresis
Returns
status code
  • 0 success
  • 1 set hysteresis failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 957 of file driver_as5600.c.

◆ as5600_set_max_angle()

uint8_t as5600_set_max_angle ( as5600_handle_t * handle,
uint16_t ang )

set the max angle

Parameters
[in]*handlepointer to an as5600 handle structure
[in]angmax angle
Returns
status code
  • 0 success
  • 1 set max angle failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 ang is over 0xFFF
Note
none

Definition at line 490 of file driver_as5600.c.

◆ as5600_set_output_stage()

uint8_t as5600_set_output_stage ( as5600_handle_t * handle,
as5600_output_stage_t stage )

set the output stage

Parameters
[in]*handlepointer to an as5600 handle structure
[in]stageoutput stage
Returns
status code
  • 0 success
  • 1 set output stage failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 880 of file driver_as5600.c.

◆ as5600_set_power_mode()

uint8_t as5600_set_power_mode ( as5600_handle_t * handle,
as5600_power_mode_t mode )

set the power mode

Parameters
[in]*handlepointer to an as5600 handle structure
[in]modepower mode
Returns
status code
  • 0 success
  • 1 set power mode failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 1034 of file driver_as5600.c.

◆ as5600_set_pwm_frequency()

uint8_t as5600_set_pwm_frequency ( as5600_handle_t * handle,
as5600_pwm_frequency_t freq )

set the pwm frequency

Parameters
[in]*handlepointer to an as5600 handle structure
[in]freqpwm frequency
Returns
status code
  • 0 success
  • 1 set pwm frequency failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 803 of file driver_as5600.c.

◆ as5600_set_slow_filter()

uint8_t as5600_set_slow_filter ( as5600_handle_t * handle,
as5600_slow_filter_t filter )

set the slow filter

Parameters
[in]*handlepointer to an as5600 handle structure
[in]filterslow filter
Returns
status code
  • 0 success
  • 1 set slow filter failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 726 of file driver_as5600.c.

◆ as5600_set_start_position()

uint8_t as5600_set_start_position ( as5600_handle_t * handle,
uint16_t pos )

set the start position

Parameters
[in]*handlepointer to an as5600 handle structure
[in]posstart position
Returns
status code
  • 0 success
  • 1 set start position failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 pos is over 0xFFF
Note
none

Definition at line 324 of file driver_as5600.c.

◆ as5600_set_stop_position()

uint8_t as5600_set_stop_position ( as5600_handle_t * handle,
uint16_t pos )

set the stop position

Parameters
[in]*handlepointer to an as5600 handle structure
[in]posstop position
Returns
status code
  • 0 success
  • 1 set stop position failed
  • 2 handle is NULL
  • 3 handle is not initialized
  • 4 pos is over 0xFFF
Note
none

Definition at line 407 of file driver_as5600.c.

◆ as5600_set_watch_dog()

uint8_t as5600_set_watch_dog ( as5600_handle_t * handle,
as5600_bool_t enable )

enable or disable the watch dog

Parameters
[in]*handlepointer to an as5600 handle structure
[in]enablebool value
Returns
status code
  • 0 success
  • 1 set watchdog failed
  • 2 handle is NULL
  • 3 handle is not initialized
Note
none

Definition at line 572 of file driver_as5600.c.