![]() |
LibDriver X9CXX
|
x9cxx basic driver modules More...
Data Structures | |
| struct | x9cxx_handle_s |
| x9cxx handle structure definition More... | |
| struct | x9cxx_info_s |
| x9cxx information structure definition More... | |
Macros | |
| #define | X9CXX_STEP_DELAY_US 10 |
| x9cxx step delay definition | |
| #define | X9CXX_OPERATE_DELAY_US 10 |
| x9cxx operate delay definition | |
| #define | X9CXX_STORE_DELAY_MS 30 |
| x9cxx store delay definition | |
Typedefs | |
| typedef struct x9cxx_handle_s | x9cxx_handle_t |
| x9cxx handle structure definition | |
| typedef struct x9cxx_info_s | x9cxx_info_t |
| x9cxx information structure definition | |
Enumerations | |
| enum | x9cxx_type_t { X9C102 = 1000 , X9C103 = 10000 , X9C503 = 50000 , X9C104 = 100000 } |
| x9cxx type enumeration definition More... | |
| enum | x9cxx_bool_t { X9CXX_BOOL_FALSE = 0x00 , X9CXX_BOOL_TRUE = 0x01 } |
| x9cxx bool enumeration definition More... | |
Functions | |
| uint8_t | x9cxx_info (x9cxx_info_t *info) |
| get chip's information | |
| uint8_t | x9cxx_set_type (x9cxx_handle_t *handle, x9cxx_type_t type) |
| set chip type | |
| uint8_t | x9cxx_get_type (x9cxx_handle_t *handle, x9cxx_type_t *type) |
| get chip type | |
| uint8_t | x9cxx_init (x9cxx_handle_t *handle) |
| initialize the chip | |
| uint8_t | x9cxx_deinit (x9cxx_handle_t *handle) |
| close the chip | |
| uint8_t | x9cxx_reset_to_min (x9cxx_handle_t *handle, x9cxx_bool_t store_enable) |
| reset to min | |
| uint8_t | x9cxx_reset_to_max (x9cxx_handle_t *handle, x9cxx_bool_t store_enable) |
| reset to max | |
| uint8_t | x9cxx_increment (x9cxx_handle_t *handle, uint8_t step, x9cxx_bool_t store_enable) |
| increment | |
| uint8_t | x9cxx_decrement (x9cxx_handle_t *handle, uint8_t step, x9cxx_bool_t store_enable) |
| decrement | |
| uint8_t | x9cxx_set_absolute_step_counter (x9cxx_handle_t *handle, uint8_t counter, x9cxx_bool_t store_enable) |
| set absolute step counter | |
| uint8_t | x9cxx_get_step_counter (x9cxx_handle_t *handle, uint8_t *counter) |
| get step counter | |
| uint8_t | x9cxx_resistor_convert_to_register (x9cxx_handle_t *handle, float ohm, uint8_t *step) |
| resistor convert to register | |
| uint8_t | x9cxx_resistor_convert_to_data (x9cxx_handle_t *handle, uint8_t step, float *ohm) |
| resistor convert to data | |
x9cxx basic driver modules
| #define X9CXX_OPERATE_DELAY_US 10 |
| #define X9CXX_STEP_DELAY_US 10 |
| #define X9CXX_STORE_DELAY_MS 30 |
| typedef struct x9cxx_handle_s x9cxx_handle_t |
x9cxx handle structure definition
| typedef struct x9cxx_info_s x9cxx_info_t |
x9cxx information structure definition
| enum x9cxx_bool_t |
x9cxx bool enumeration definition
| Enumerator | |
|---|---|
| X9CXX_BOOL_FALSE | false |
| X9CXX_BOOL_TRUE | true |
Definition at line 94 of file driver_x9cxx.h.
| enum x9cxx_type_t |
x9cxx type enumeration definition
| Enumerator | |
|---|---|
| X9C102 | 1k |
| X9C103 | 10k |
| X9C503 | 50k |
| X9C104 | 100k |
Definition at line 83 of file driver_x9cxx.h.
| uint8_t x9cxx_decrement | ( | x9cxx_handle_t * | handle, |
| uint8_t | step, | ||
| x9cxx_bool_t | store_enable ) |
decrement
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | step | step counter |
| [in] | store_enable | bool value |
Definition at line 662 of file driver_x9cxx.c.
| uint8_t x9cxx_deinit | ( | x9cxx_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a x9cxx handle structure |
Definition at line 432 of file driver_x9cxx.c.
| uint8_t x9cxx_get_step_counter | ( | x9cxx_handle_t * | handle, |
| uint8_t * | counter ) |
get step counter
| [in] | *handle | pointer to a x9cxx handle structure |
| [out] | *counter | pointer to a step counter buffer |
Definition at line 733 of file driver_x9cxx.c.
| uint8_t x9cxx_get_type | ( | x9cxx_handle_t * | handle, |
| x9cxx_type_t * | type ) |
get chip type
| [in] | *handle | pointer to a x9cxx handle structure |
| [out] | *type | pointer to a chip type buffer |
Definition at line 895 of file driver_x9cxx.c.
| uint8_t x9cxx_increment | ( | x9cxx_handle_t * | handle, |
| uint8_t | step, | ||
| x9cxx_bool_t | store_enable ) |
increment
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | step | step counter |
| [in] | store_enable | bool value |
Definition at line 590 of file driver_x9cxx.c.
| uint8_t x9cxx_info | ( | x9cxx_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a x9cxx info structure |
Definition at line 969 of file driver_x9cxx.c.
| uint8_t x9cxx_init | ( | x9cxx_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a x9cxx handle structure |
Definition at line 285 of file driver_x9cxx.c.
| uint8_t x9cxx_reset_to_max | ( | x9cxx_handle_t * | handle, |
| x9cxx_bool_t | store_enable ) |
reset to max
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | store_enable | bool value |
Definition at line 533 of file driver_x9cxx.c.
| uint8_t x9cxx_reset_to_min | ( | x9cxx_handle_t * | handle, |
| x9cxx_bool_t | store_enable ) |
reset to min
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | store_enable | bool value |
Definition at line 477 of file driver_x9cxx.c.
| uint8_t x9cxx_resistor_convert_to_data | ( | x9cxx_handle_t * | handle, |
| uint8_t | step, | ||
| float * | ohm ) |
resistor convert to data
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | step | step counter |
| [out] | *ohm | pointer to an ohm buffer |
Definition at line 945 of file driver_x9cxx.c.
| uint8_t x9cxx_resistor_convert_to_register | ( | x9cxx_handle_t * | handle, |
| float | ohm, | ||
| uint8_t * | step ) |
resistor convert to register
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | ohm | resistor ohm |
| [out] | *step | pointer to a step buffer |
Definition at line 918 of file driver_x9cxx.c.
| uint8_t x9cxx_set_absolute_step_counter | ( | x9cxx_handle_t * | handle, |
| uint8_t | counter, | ||
| x9cxx_bool_t | store_enable ) |
set absolute step counter
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | counter | absolute step counter |
| [in] | store_enable | bool value |
Definition at line 771 of file driver_x9cxx.c.
| uint8_t x9cxx_set_type | ( | x9cxx_handle_t * | handle, |
| x9cxx_type_t | type ) |
set chip type
| [in] | *handle | pointer to a x9cxx handle structure |
| [in] | type | chip type |
Definition at line 874 of file driver_x9cxx.c.