![]() |
LibDriver L3GD20H
|
l3gd20h basic driver modules More...
Data Structures | |
| struct | l3gd20h_handle_s |
| l3gd20h handle structure definition More... | |
| struct | l3gd20h_info_s |
| l3gd20h information structure definition More... | |
Typedefs | |
| typedef struct l3gd20h_handle_s | l3gd20h_handle_t |
| l3gd20h handle structure definition | |
| typedef struct l3gd20h_info_s | l3gd20h_info_t |
| l3gd20h information structure definition | |
Functions | |
| uint8_t | l3gd20h_info (l3gd20h_info_t *info) |
| get chip's information | |
| uint8_t | l3gd20h_set_interface (l3gd20h_handle_t *handle, l3gd20h_interface_t interface) |
| set the chip interface | |
| uint8_t | l3gd20h_get_interface (l3gd20h_handle_t *handle, l3gd20h_interface_t *interface) |
| get the chip interface | |
| uint8_t | l3gd20h_set_addr_pin (l3gd20h_handle_t *handle, l3gd20h_address_t addr_pin) |
| set the iic address pin | |
| uint8_t | l3gd20h_get_addr_pin (l3gd20h_handle_t *handle, l3gd20h_address_t *addr_pin) |
| get the iic address pin | |
| uint8_t | l3gd20h_init (l3gd20h_handle_t *handle) |
| initialize the chip | |
| uint8_t | l3gd20h_deinit (l3gd20h_handle_t *handle) |
| close the chip | |
| uint8_t | l3gd20h_read (l3gd20h_handle_t *handle, int16_t(*raw)[3], float(*dps)[3], uint16_t *len) |
| read the data | |
| uint8_t | l3gd20h_irq_handler (l3gd20h_handle_t *handle, uint8_t num) |
| interrupt handler | |
| uint8_t | l3gd20h_read_temperature (l3gd20h_handle_t *handle, int8_t *raw, float *temp) |
| read the temperature | |
| uint8_t | l3gd20h_set_mode (l3gd20h_handle_t *handle, l3gd20h_mode_t mode) |
| set the chip mode | |
| uint8_t | l3gd20h_get_mode (l3gd20h_handle_t *handle, l3gd20h_mode_t *mode) |
| get the chip mode | |
| uint8_t | l3gd20h_set_axis (l3gd20h_handle_t *handle, l3gd20h_axis_t axis, l3gd20h_bool_t enable) |
| set the axis | |
| uint8_t | l3gd20h_get_axis (l3gd20h_handle_t *handle, l3gd20h_axis_t axis, l3gd20h_bool_t *enable) |
| get the axis | |
| uint8_t | l3gd20h_set_rate_bandwidth (l3gd20h_handle_t *handle, l3gd20h_lodr_odr_bw_t rate_bandwidth) |
| set the rate bandwidth | |
| uint8_t | l3gd20h_get_rate_bandwidth (l3gd20h_handle_t *handle, l3gd20h_lodr_odr_bw_t *rate_bandwidth) |
| get the rate bandwidth | |
| uint8_t | l3gd20h_set_edge_trigger (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the edge trigger | |
| uint8_t | l3gd20h_get_edge_trigger (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the edge trigger status | |
| uint8_t | l3gd20h_set_level_trigger (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the level trigger | |
| uint8_t | l3gd20h_get_level_trigger (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the level trigger status | |
| uint8_t | l3gd20h_set_high_pass_filter_mode (l3gd20h_handle_t *handle, l3gd20h_high_pass_filter_mode_t mode) |
| set the high pass filter mode | |
| uint8_t | l3gd20h_get_high_pass_filter_mode (l3gd20h_handle_t *handle, l3gd20h_high_pass_filter_mode_t *mode) |
| get the high pass filter mode | |
| uint8_t | l3gd20h_set_high_pass_filter_cut_off_frequency (l3gd20h_handle_t *handle, l3gd20h_high_pass_filter_cut_off_frequency_t frequency) |
| set the high pass filter cut off frequency | |
| uint8_t | l3gd20h_get_high_pass_filter_cut_off_frequency (l3gd20h_handle_t *handle, l3gd20h_high_pass_filter_cut_off_frequency_t *frequency) |
| get the high pass filter cut off frequency | |
| uint8_t | l3gd20h_set_block_data_update (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the block data update | |
| uint8_t | l3gd20h_get_block_data_update (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the block data update status | |
| uint8_t | l3gd20h_set_data_format (l3gd20h_handle_t *handle, l3gd20h_data_format_t data_format) |
| set the data format | |
| uint8_t | l3gd20h_get_data_format (l3gd20h_handle_t *handle, l3gd20h_data_format_t *data_format) |
| get the data format | |
| uint8_t | l3gd20h_set_full_scale (l3gd20h_handle_t *handle, l3gd20h_full_scale_t full_scale) |
| set the full scale | |
| uint8_t | l3gd20h_get_full_scale (l3gd20h_handle_t *handle, l3gd20h_full_scale_t *full_scale) |
| get the full scale | |
| uint8_t | l3gd20h_set_level_sensitive_latched (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the level sensitive latched | |
| uint8_t | l3gd20h_get_level_sensitive_latched (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the level sensitive latched status | |
| uint8_t | l3gd20h_set_self_test (l3gd20h_handle_t *handle, l3gd20h_self_test_t self_test) |
| set the self test | |
| uint8_t | l3gd20h_get_self_test (l3gd20h_handle_t *handle, l3gd20h_self_test_t *self_test) |
| get the self test | |
| uint8_t | l3gd20h_set_spi_wire (l3gd20h_handle_t *handle, l3gd20h_spi_wire_t spi_wire) |
| set the spi wire | |
| uint8_t | l3gd20h_get_spi_wire (l3gd20h_handle_t *handle, l3gd20h_spi_wire_t *spi_wire) |
| get the spi wire | |
| uint8_t | l3gd20h_set_boot (l3gd20h_handle_t *handle, l3gd20h_boot_t boot) |
| set the boot | |
| uint8_t | l3gd20h_get_boot (l3gd20h_handle_t *handle, l3gd20h_boot_t *boot) |
| get the boot | |
| uint8_t | l3gd20h_set_high_pass_filter (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable high pass filter | |
| uint8_t | l3gd20h_get_high_pass_filter (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get high pass filter status | |
| uint8_t | l3gd20h_set_out_selection (l3gd20h_handle_t *handle, l3gd20h_selection_t selection) |
| set the out selection | |
| uint8_t | l3gd20h_get_out_selection (l3gd20h_handle_t *handle, l3gd20h_selection_t *selection) |
| get the out selection | |
| uint8_t | l3gd20h_set_high_pass_filter_reference (l3gd20h_handle_t *handle, uint8_t value) |
| set the high pass filter reference | |
| uint8_t | l3gd20h_get_high_pass_filter_reference (l3gd20h_handle_t *handle, uint8_t *value) |
| get the high pass filter reference | |
| uint8_t | l3gd20h_get_status (l3gd20h_handle_t *handle, uint8_t *status) |
| get the chip status | |
| uint8_t | l3gd20h_set_iic (l3gd20h_handle_t *handle, l3gd20h_bool_t enable) |
| enable or disable the iic interface | |
| uint8_t | l3gd20h_get_iic (l3gd20h_handle_t *handle, l3gd20h_bool_t *enable) |
| get the iic interface status | |
| uint8_t | l3gd20h_soft_reset (l3gd20h_handle_t *handle) |
| soft reset the device | |
l3gd20h basic driver modules
| typedef struct l3gd20h_handle_s l3gd20h_handle_t |
l3gd20h handle structure definition
| typedef struct l3gd20h_info_s l3gd20h_info_t |
l3gd20h information structure definition
| enum l3gd20h_address_t |
l3gd20h address enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_ADDRESS_SDO_0 | addr pin connected to the GND |
| L3GD20H_ADDRESS_SDO_1 | addr pin connected to the VCC |
Definition at line 72 of file driver_l3gd20h.h.
| enum l3gd20h_axis_t |
l3gd20h axis enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_AXIS_X | axis x |
| L3GD20H_AXIS_Y | axis y |
| L3GD20H_AXIS_Z | axis z |
Definition at line 90 of file driver_l3gd20h.h.
| enum l3gd20h_bool_t |
l3gd20h bool enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_BOOL_FALSE | false |
| L3GD20H_BOOL_TRUE | true |
Definition at line 81 of file driver_l3gd20h.h.
| enum l3gd20h_boot_t |
l3gd20h boot enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_BOOT_NORMAL | boot normal |
| L3GD20H_BOOT_REBOOT | boot reboot |
Definition at line 223 of file driver_l3gd20h.h.
l3gd20h data format enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_DATA_FORMAT_BIG_ENDIAN | big endian |
| L3GD20H_DATA_FORMAT_LITTLE_ENDIAN | little endian |
Definition at line 185 of file driver_l3gd20h.h.
| enum l3gd20h_full_scale_t |
l3gd20h full scale type enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_FULL_SCALE_245_DPS | ±245 dps |
| L3GD20H_FULL_SCALE_500_DPS | ±500 dps |
| L3GD20H_FULL_SCALE_2000_DPS | ±2000 dps |
Definition at line 194 of file driver_l3gd20h.h.
l3gd20h high pass filter cut off frequency enumeration definition
ODR=12.5 ODR=25 ODR=50 ODR=100 ODR=200 ODR=400 ODR=800
0x0 1Hz 2Hz 4Hz 8Hz 15Hz 30Hz 56Hz 0x1 0.5Hz 1Hz 2Hz 4Hz 8Hz 15Hz 30Hz 0x2 0.2Hz 0.5Hz 1Hz 2Hz 4Hz 8Hz 15Hz 0x3 0.1Hz 0.2Hz 0.5Hz 1Hz 2Hz 4Hz 8Hz 0x4 0.05Hz 0.1Hz 0.2Hz 0.5Hz 1Hz 2Hz 4Hz 0x5 0.02Hz 0.05Hz 0.1Hz 0.2Hz 0.5Hz 1Hz 2Hz 0x6 0.01Hz 0.02Hz 0.05Hz 0.1Hz 0.2Hz 0.5Hz 1Hz 0x7 0.005Hz 0.01Hz 0.02Hz 0.05Hz 0.1Hz 0.2Hz 0.5Hz 0x8 0.002Hz 0.005Hz 0.01Hz 0.02Hz 0.05Hz 0.1Hz 0.2Hz 0x9 0.001Hz 0.002Hz 0.005Hz 0.01Hz 0.02Hz 0.05Hz 0.1Hz
Definition at line 133 of file driver_l3gd20h.h.
l3gd20h high pass filter mode enumeration definition
Definition at line 110 of file driver_l3gd20h.h.
| enum l3gd20h_interface_t |
l3gd20h interface enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_INTERFACE_IIC | iic interface function |
| L3GD20H_INTERFACE_SPI | spi interface function |
Definition at line 63 of file driver_l3gd20h.h.
l3gd20h low odr odr bw enumeration definition
Definition at line 150 of file driver_l3gd20h.h.
| enum l3gd20h_mode_t |
l3gd20h mode enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_MODE_POWER_DOWN | power down mode |
| L3GD20H_MODE_NORMAL | normal mode |
| L3GD20H_MODE_SLEEP | sleep mode |
Definition at line 100 of file driver_l3gd20h.h.
| enum l3gd20h_selection_t |
l3gd20h selection enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_SELECTION_LPF1 | LPF1 |
| L3GD20H_SELECTION_LPF1_HPF | LPF1->HPF |
| L3GD20H_SELECTION_LPF1_HPF_LPF2 | LPF1->HPF->LPF2 |
Definition at line 232 of file driver_l3gd20h.h.
| enum l3gd20h_self_test_t |
l3gd20h self test type enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_SELF_TEST_NORMAL | normal mode |
| L3GD20H_SELF_TEST_0 | test 0 mode |
| L3GD20H_SELF_TEST_1 | test 1 mode |
Definition at line 204 of file driver_l3gd20h.h.
| enum l3gd20h_spi_wire_t |
l3gd20h spi wire enumeration definition
| Enumerator | |
|---|---|
| L3GD20H_SPI_WIRE_4 | spi 4 wire |
| L3GD20H_SPI_WIRE_3 | spi 3 wire |
Definition at line 214 of file driver_l3gd20h.h.
| enum l3gd20h_status_t |
l3gd20h status enumeration definition
Definition at line 242 of file driver_l3gd20h.h.
| uint8_t l3gd20h_deinit | ( | l3gd20h_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an l3gd20h handle structure |
Definition at line 3928 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_addr_pin | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_address_t * | addr_pin ) |
get the iic address pin
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *addr_pin | pointer to an address pin buffer |
Definition at line 251 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_axis | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_axis_t | axis, | ||
| l3gd20h_bool_t * | enable ) |
get the axis
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | axis | set axis |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 413 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_block_data_update | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the block data update status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1478 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_boot | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_boot_t * | boot ) |
get the boot
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *boot | pointer to a boot mode buffer |
Definition at line 1922 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_data_format | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_data_format_t * | data_format ) |
get the data format
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *data_format | pointer to a data format buffer |
Definition at line 1552 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_edge_trigger | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the edge trigger status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 589 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_full_scale | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_full_scale_t * | full_scale ) |
get the full scale
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *full_scale | pointer to a full scale buffer |
Definition at line 1626 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_high_pass_filter | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get high pass filter status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 2144 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_high_pass_filter_cut_off_frequency | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_high_pass_filter_cut_off_frequency_t * | frequency ) |
get the high pass filter cut off frequency
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *frequency | pointer to a high pass filter cut off frequency buffer |
Definition at line 812 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_high_pass_filter_mode | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_high_pass_filter_mode_t * | mode ) |
get the high pass filter mode
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *mode | pointer to a high pass filter mode buffer |
Definition at line 738 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_high_pass_filter_reference | ( | l3gd20h_handle_t * | handle, |
| uint8_t * | value ) |
get the high pass filter reference
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *value | pointer to a high pass filter reference value buffer |
Definition at line 2354 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_iic | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the iic interface status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 3375 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_interface | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interface_t * | interface ) |
get the chip interface
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *interface | pointer to a chip interface buffer |
Definition at line 209 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_level_sensitive_latched | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the level sensitive latched status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1700 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_level_trigger | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t * | enable ) |
get the level trigger status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 664 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_mode | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_mode_t * | mode ) |
get the chip mode
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *mode | pointer to a chip mode buffer |
Definition at line 322 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_out_selection | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_selection_t * | selection ) |
get the out selection
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *selection | pointer to an out selection buffer |
Definition at line 2292 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_rate_bandwidth | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_lodr_odr_bw_t * | rate_bandwidth ) |
get the rate bandwidth
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *rate_bandwidth | pointer to a rate bandwidth buffer |
Definition at line 509 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_self_test | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_self_test_t * | self_test ) |
get the self test
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *self_test | pointer to a self test buffer |
Definition at line 1774 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_spi_wire | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_spi_wire_t * | spi_wire ) |
get the spi wire
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *spi_wire | pointer to a spi wire buffer |
Definition at line 1848 of file driver_l3gd20h.c.
| uint8_t l3gd20h_get_status | ( | l3gd20h_handle_t * | handle, |
| uint8_t * | status ) |
get the chip status
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *status | pointer to a status buffer |
Definition at line 2416 of file driver_l3gd20h.c.
| uint8_t l3gd20h_info | ( | l3gd20h_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an l3gd20h info structure |
Definition at line 4178 of file driver_l3gd20h.c.
| uint8_t l3gd20h_init | ( | l3gd20h_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an l3gd20h handle structure |
Definition at line 3734 of file driver_l3gd20h.c.
| uint8_t l3gd20h_irq_handler | ( | l3gd20h_handle_t * | handle, |
| uint8_t | num ) |
interrupt handler
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | num | interrupt number |
Definition at line 3544 of file driver_l3gd20h.c.
| uint8_t l3gd20h_read | ( | l3gd20h_handle_t * | handle, |
| int16_t(*) | raw[3], | ||
| float(*) | dps[3], | ||
| uint16_t * | len ) |
read the data
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | **raw | pointer to a raw data buffer |
| [out] | **dps | pointer to a converted data buffer |
| [in,out] | *len | pointer to a date length buffer |
Definition at line 3975 of file driver_l3gd20h.c.
| uint8_t l3gd20h_read_temperature | ( | l3gd20h_handle_t * | handle, |
| int8_t * | raw, | ||
| float * | temp ) |
read the temperature
| [in] | *handle | pointer to an l3gd20h handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *temp | pointer to a converted temperature buffer |
Definition at line 2380 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_addr_pin | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_address_t | addr_pin ) |
set the iic address pin
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | addr_pin | address pin |
Definition at line 230 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_axis | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_axis_t | axis, | ||
| l3gd20h_bool_t | enable ) |
set the axis
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | axis | set axis |
| [in] | enable | bool value |
Definition at line 375 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_block_data_update | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the block data update
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 1441 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_boot | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_boot_t | boot ) |
set the boot
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | boot | boot mode |
Definition at line 1885 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_data_format | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_data_format_t | data_format ) |
set the data format
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | data_format | data format |
Definition at line 1515 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_edge_trigger | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the edge trigger
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 552 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_full_scale | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_full_scale_t | full_scale ) |
set the full scale
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | full_scale | full scale |
Definition at line 1589 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_high_pass_filter | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable high pass filter
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 2107 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_high_pass_filter_cut_off_frequency | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_high_pass_filter_cut_off_frequency_t | frequency ) |
set the high pass filter cut off frequency
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | frequency | high pass filter cut off frequency |
Definition at line 775 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_high_pass_filter_mode | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_high_pass_filter_mode_t | mode ) |
set the high pass filter mode
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | mode | high pass filter mode |
Definition at line 701 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_high_pass_filter_reference | ( | l3gd20h_handle_t * | handle, |
| uint8_t | value ) |
set the high pass filter reference
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | value | high pass filter reference value |
Definition at line 2329 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_iic | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the iic interface
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 3338 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_interface | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_interface_t | interface ) |
set the chip interface
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | interface | chip interface |
Definition at line 188 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_level_sensitive_latched | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the level sensitive latched
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 1663 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_level_trigger | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_bool_t | enable ) |
enable or disable the level trigger
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | enable | bool value |
Definition at line 627 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_mode | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_mode_t | mode ) |
set the chip mode
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | mode | chip mode |
Definition at line 274 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_out_selection | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_selection_t | selection ) |
set the out selection
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | selection | out selection |
Definition at line 2255 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_rate_bandwidth | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_lodr_odr_bw_t | rate_bandwidth ) |
set the rate bandwidth
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | rate_bandwidth | rate bandwidth |
Definition at line 450 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_self_test | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_self_test_t | self_test ) |
set the self test
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | self_test | self test |
Definition at line 1737 of file driver_l3gd20h.c.
| uint8_t l3gd20h_set_spi_wire | ( | l3gd20h_handle_t * | handle, |
| l3gd20h_spi_wire_t | spi_wire ) |
set the spi wire
| [in] | *handle | pointer to an l3gd20h handle structure |
| [in] | spi_wire | spi wire |
Definition at line 1811 of file driver_l3gd20h.c.
| uint8_t l3gd20h_soft_reset | ( | l3gd20h_handle_t * | handle | ) |
soft reset the device
| [in] | *handle | pointer to an l3gd20h handle structure |
Definition at line 3411 of file driver_l3gd20h.c.