### Install RAK12029 Library via PlatformIO Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Add this line to your platformio.ini file to include the RAK12029 library as a project dependency. ```log lib_deps = rakwireless/RAKwireless LDC1614 Inductive library ``` -------------------------------- ### LDC1614_set_sensor_config Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Sets the main configuration for the LDC1614 sensor, including channel selection, conversion start, sleep mode, activation mode, and INT pin disable. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_sensor_config ### Description Sets the main configuration part of the sensor, including channel selection, start conversion, sleep mode, sensor activation mode, and INT pin disable. ### Parameters #### Path Parameters - **value** (u16) - Required - The configuration value to be set. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_init Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Initializes the IIC communication for the LDC1614 sensor. Returns true on success, false otherwise. ```APIDOC ## LDC1614_init ### Description Initializes the IIC communication for the LDC1614 sensor. ### Return - **s32** - Returns true if the LDC1614 initialization succeeds, otherwise returns false. ``` -------------------------------- ### LDC1614_set_driver_current Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Sets the input frequency divide and LDC1614_Fref divide for the specified channel. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_driver_current ### Description Sets the input frequency divide and LDC1614_Fref divide for the specified channel. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. - **value** (u16) - Required - The value to be set. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_set_mux_config Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Configures the channel multiplexing for the LDC1614 sensor. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_mux_config ### Description Configures the channel multiplexing for the LDC1614 sensor. ### Parameters #### Path Parameters - **value** (u16) - Required - The value to be set for multiplexing configuration. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_mutiple_channel_config Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Configures four channels of the LDC1614 sensor by setting the inductance and capacitance values. Returns 0 on success, or another value on failure. ```APIDOC ## LDC1614_mutiple_channel_config ### Description Configure four channels of the LDC1614 sensor by setting the inductance and capacitance values. Returns 0 on success, or another value on failure. ### Method N/A (C function) ### Parameters #### Input Parameters - **inductance** (float) - Input - Set the inductance (unit-uH). - **capatance** (float) - Input - Set the capatance (unit-pf). ### Return Value - **s32** - If the configuration is successful, return 0, otherwise return something else. ``` -------------------------------- ### RAK12029_LDC1614_Inductive Constructor Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Initializes the Inductive interface object for the LDC1614 sensor. Allows specifying a custom IIC address. ```APIDOC ## RAK12029_LDC1614_Inductive Constructor ### Description Constructor for the Inductive interface. Initializes the object with an optional hardware IIC address. ### Parameters #### Path Parameters - **IIC_ADDR** (u8) - Optional - Hardware IIC Address. The default address is 0x2A. ``` -------------------------------- ### LDC1614_single_channel_config Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Configures a single channel of the LDC1614 sensor with specified inductance and capacitance values. Returns 0 on success, otherwise returns a different value. ```APIDOC ## LDC1614_single_channel_config ### Description Configures a single channel of the LDC1614 sensor with specified inductance and capacitance values. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. - **inductance** (float) - Required - The inductance value to set (unit: uH). - **capatance** (float) - Required - The capacitance value to set (unit: pf). ### Return - **s32** - Returns 0 if the configuration is successful, otherwise returns a different value. ``` -------------------------------- ### LDC1614_set_ERROR_CONFIG Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Configures the error output settings for the LDC1614 sensor. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_ERROR_CONFIG ### Description Configures the error output settings for the LDC1614 sensor. ### Parameters #### Path Parameters - **value** (u16) - Required - The value to be set for error configuration. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_set_FIN_LDC1614_Fref_DIV Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Validates the LIN frame checksum for the specified channel. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_FIN_LDC1614_Fref_DIV ### Description Validates the LIN frame checksum for the specified channel. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_set_LC_stabilize_time Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Configures a short stabilization time for the LC sensor before conversion on the specified channel. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_LC_stabilize_time ### Description Waits for the LC sensor to stabilize for a short time before conversion on the specified channel. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_set_conversion_time Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Sets the conversion interval time for a specified LDC1614 sensor channel. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_conversion_time ### Description Sets the conversion interval time for a specified LDC1614 sensor channel. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. - **value** (u16) - Required - The conversion time value to be set. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_reset_sensor Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Resets the LDC1614 sensor. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_reset_sensor ### Description Resets the LDC1614 sensor. ### Return - **s32** - Returns 1 if the sensor reset is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_set_conversion_offset Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Sets the conversion offset for a specified LDC1614 sensor channel. Returns 1 on success, 0 otherwise. ```APIDOC ## LDC1614_set_conversion_offset ### Description Sets the conversion offset for a specified LDC1614 sensor channel. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. - **value** (u16) - Required - The offset value to be set. ### Return - **s32** - Returns 1 if the configuration is successful, otherwise returns 0. ``` -------------------------------- ### LDC1614_get_sensor_status Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Retrieves the current status of the LDC1614 sensor. Returns the register data. ```APIDOC ## LDC1614_get_sensor_status ### Description Gets the current status of the LDC1614 sensor. ### Return - **u32** - Returns the register data representing the sensor status. ``` -------------------------------- ### LDC1614_get_channel_result Source: https://github.com/rakwireless/rak12029-ldc1614/blob/main/README.md Reads the raw channel result from the specified LDC1614 sensor register. Results are returned via the 'result' output parameter. ```APIDOC ## LDC1614_get_channel_result ### Description Reads the raw channel result from the LDC1614 sensor's register. ### Parameters #### Path Parameters - **channel** (u8) - Required - LDC1614 has a total of four channels. The value ranges from 0 to 3. - **result** (u32 *) - Output - Stores the raw data result. ### Return - **s32** - Returns 0 if the configuration is successful, otherwise returns a different value. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.