All notable changes to this project are documented in this file.
npmx_adc_ntc_config_t
structure to the ADC driver. The structure contains a thermistor type and NTC beta value.npmx_charger_*_temperature_*
functions for getting and setting NTC temperature threshold using temperature in degrees Celsius.restore_values
initialization parameter to the npmx_core_init
function. Now, the following values can be restored from a PMIC device during its initialization: ADC burst mode enable, NTC beta value, charging current, discharging current, and ship button inversion status.npmx_common
.npmx_charger_die_temp_*
functions. Now they accept negative values.npmx_adc_ntc_config_t
configuration structure is passed as an argument to npmx_adc_ntc_config_*
functions.NPMX_ADC_MEAS_NTC
enumeration which used to return measurement in Ohms has been replaced by NPMX_ADC_MEAS_BAT_TEMP
which returns temperature in millidegrees Celsius.npmx_timer_config_set
function. Now it triggers the NPMX_TIMER_TASK_STROBE
task after setting the configuration.NPM1300_ENG_C
to NPM1300
.templates/npmx_config_npm1300_eng_c.h
to templates/npmx_config_npm1300.h
.npmx_callback_to_str
and npmx_callback_bit_to_str
functions. Now, strings will be returned instead of a NULL pointer when building with NPMX_DEBUG
defined.npmx_ldsw_soft_start_current_t
.npmx_ldsw_soft_start_config_get
function that caused an incorrect enable state.npmx_charger_die_temp_*
functions that caused incorrect temperature calculations in the charger driver.NPMX_ADC_MEAS_BAT_TEMP
parameter in the npmx_adc_meas_get
function. The issue caused an inaccurate die temperature calculation in the charger driver.npmx_adc_meas_get
and npmx_adc_meas_all_get
functions that caused an incorrect value to be returned.npmx_callback_bit_to_str
function that caused an incorrect string description to be returned.npmx_ship_reset_config_set
function that caused an incorrect task to be called.publish-documentation.yml
file. The file generates a HTML page with documentation that is linked on the GitHub repository page.generic_callback
initialization to the npmx_core_init
function.charging_current_ma
and discharging_current_ma
fields to the npmx_charger_t
structure.burst
field to the npmx_adc_t
structure.README.md
.npmx_backend_t
structure to contain pointers to write and read functions.npmx_core_task_trigger()
function to the generic one.uint16_t
to int32_t
.NPMX_SHIP_INVALID
enumeration to NPMX_SHIP_TIME_INVALID
.NPMX_ADC_MEAS_VBAT2
enumeration to NPMX_ADC_MEAS_VBAT2_IBAT
.NPMX_ADC_MEAS_VBAT3
enumeration to NPMX_ADC_MEAS_VBAT3_VBUS
.main_page.dox
file.npmx_ship_time_convert
function.npmx_adc_ntc_type_convert
, npmx_adc_ntc_meas_interval_convert
and npmx_adc_die_temp_meas_interval_convert
functions.npmx_timer_status_t
structure.NPMX_TIMER_PESCALER_SLOW
to NPMX_TIMER_PRESCALER_SLOW
.NPMX_TIMER_PESCALER_FAST
to NPMX_TIMER_PRESCALER_FAST
.npmx_adc_all_meas_t
to npmx_adc_meas_all_t
.npmx_adc_battery_ntc_type_t
to npmx_adc_ntc_type_t
.npmx_adc_auto_meas_inverval_*_{set, get}
to npmx_adc_*_meas_interval_{set, get}
.npmx_charger_termination_voltage_{normal, warm}_{set, get}
to npmx_charger_termination_{normal, warm}_voltage_{set, get}
.npmx_charger_trickle_{set, get}
to npmx_charger_trickle_voltage_{set, get}
.NPMX_EVENT_GROUP_VBUSIN_OVRVOLT_DETECTED_MASK
to NPMX_EVENT_GROUP_VBUSIN_OVERVOLT_DETECTED_MASK
.NPMX_EVENT_GROUP_THERMAL_SHDN_{DETECTED, REMOVED}_MASK
to NPMX_EVENT_GROUP_THERMAL_SHUTDOWN_{DETECTED, REMOVED}_MASK
.NPMX_GPIO_NO_PULL
to NPMX_GPIO_PULL_NONE
.npmx_gpio_config_t
member pull_state
to pull
.npmx_gpio_config_t
members: open_drain_enable
to open_drain
, debounce_enable
to debounce
.NPMX_LDSW_STATUS_LDSW_EN_MASK
to NPMX_LDSW_STATUS_DEEPSLEEP_MASK
.NPMX_LDSW_STATUS_PWUP_{LDO, LDSW}_{1, 2}_MASK
to NPMX_LDSW_STATUS_POWERUP_{LDO, LDSW}_{1, 2}_MASK
.npmx_ship_gpio_status_check
to return boolean instead of npmx_ship_button_t
enumeration.npmx_timer_status_get
to return npmx_timer_status_t
structure.npmx_ldsw_mode_get
that caused an incorrect mode to be returned.npmx_ship_button_t
enumeration.npmx_timer_boot_monitor_t
enumeration.npmx_timer_slow_domain_t
enumeration.uint32_t
type. All registers are using the uint8_t
type now.npmx_charger_iterm_convert
function.*_INVALID
enumerators.vbus_value_from_code
.NPMX_CHARGER_TASK_RELEASE
is now triggered when an error is detected.NPMX_CHECK
macro.npmx_core_context_set
and npmx_core_context_get
can be used to modify it.npmx_adc_meas_check
function.