Typedefs | |
typedef void(* | clock_calib_notify_cb_t) (float SlowClockFreq) |
clock calibration notify callback. More... | |
Functions | |
void | platform_sdk_init (void) |
platform sdk init function. More... | |
void | mem_pwr_mgmt_mode_set (mem_power_t mem_pwr_mode) |
Set the memory power management mode, which can be automatic mode or full power on mode. More... | |
void | mem_pwr_mgmt_mode_set_from (uint32_t start_addr, uint32_t size) |
Control the memory power supply by specifying start address and length. More... | |
void | system_lp_table_update_twval (table_idx_t table_idx, int16_t dur_offset, int16_t ext_offset, int16_t osc_offset) |
Enable patch function. More... | |
void | platform_clock_init (mcu_clock_type_t sys_clock, slow_clock_type_t slow_clock, uint16_t accuracy, uint16_t xo_offset) |
Platform low power clock init function. More... | |
void | platform_rc_calibration (void) |
Platform rc calibration function. More... | |
void | pwr_mgmt_warm_boot (void) |
Power Management warm boot. More... | |
void | clock_calibration_irq_handler (void) |
Handle Clock calibration interrupt request. More... | |
bool | clock_calibration_is_done (void) |
Check whether the clock calibration is completed. If it is not completed, the chip is not allowed to enter sleep. More... | |
void | pwr_mgmt_update_comm_wkup_timing_param (void) |
update comm wakeup timing settings according to lf clock More... | |
void | platform_init (void) |
Platform init function. More... | |
void | system_power_mode (sys_power_t sys_power) |
System power starup mode. More... | |
void | system_pmu_init (mcu_clock_type_t clock_type) |
PMU init function. More... | |
void | tx_power_15dbm_pmu_apply (void) |
PMU deinit function. More... | |
void | tx_power_normal_pmu_apply (void) |
void | system_pmu_deinit (void) |
void | warm_boot_first (void) |
the first warm boot stage. More... | |
void | warm_boot_second (void) |
the second warm boot stage.. More... | |
void | warm_boot (void) |
Warm boot process. More... | |
void | pmu_calibration_handler (void *p_arg) |
PMU calibration handler. More... | |
void | pmu_calibration_check_and_retry (void) |
If the last PMU calibration failed, do the calibration again. More... | |
uint16_t | clock_calib_notify_register (clock_calib_notify_cb_t calib_notify_cb) |
Register the clock calibration completion callback. More... | |
uint16_t | clock_calib_notify_unregister (clock_calib_notify_cb_t calib_notify_cb) |
Unregister the clock calibration completion callback. More... | |
void | system_pmu_calibration_stop (void) |
stop calibration. More... | |
uint32_t | sys_pmu_ddvs_ringo_get (void) |
get ddvs ringo count More... | |
void | sys_dcdc_sysldo_dcore_init (void) |
set dcdc sysldo & digocre More... | |
void | sys_pmu_ddvs_dcore_adjust (uint8_t clock_type) |
adjust digcore with ddvs More... | |
bool | sys_pmu_is_ss_chip (void) |
adjust digcore with ddvs More... | |
void | sys_set_protect_irq (IRQn_Type IRQn) |
Set the protected interrupt level. Interrupts with a lower priority group than the protected interrupt will be blocked in pmu calibration. The default protected interrupt level is BLE_IRQn. More... | |
IRQn_Type | sys_get_protect_irq (void) |
Get the protected interrupt level. More... | |
typedef void(* clock_calib_notify_cb_t) (float SlowClockFreq) |
clock calibration notify callback.
Definition at line 108 of file platform_sdk.h.
uint16_t clock_calib_notify_register | ( | clock_calib_notify_cb_t | calib_notify_cb | ) |
Register the clock calibration completion callback.
[in] | calib_notify_cb | : Calibration completion callback. |
SDK_SUCCESS | Register callback Successfully. |
SDK_ERR_POINTER_NULL | calib_notify_cb is null pointer. |
SDK_ERR_LIST_FULL | Operation is failed, the clock calibration completion callback is full. |
uint16_t clock_calib_notify_unregister | ( | clock_calib_notify_cb_t | calib_notify_cb | ) |
Unregister the clock calibration completion callback.
[in] | calib_notify_cb | : Calibration completion callback. |
SDK_SUCCESS | Unregister callback Successfully. |
SDK_ERR_POINTER_NULL | calib_notify_cb is null pointer. |
SDK_ERR_LIST_ITEM_NOT_FOUND | Operation is failed, the clock calibration completion has not been registered. |
void clock_calibration_irq_handler | ( | void | ) |
Handle Clock calibration interrupt request.
void |
bool clock_calibration_is_done | ( | void | ) |
Check whether the clock calibration is completed. If it is not completed, the chip is not allowed to enter sleep.
: | true: clock calibration is completed. :: false: clock calibration is not completed. |
void mem_pwr_mgmt_mode_set | ( | mem_power_t | mem_pwr_mode | ) |
Set the memory power management mode, which can be automatic mode or full power on mode.
[in] | mem_pwr_mode | : MEM_POWER_FULL_MODE or MEM_POWER_AUTO_MODE. |
void |
void mem_pwr_mgmt_mode_set_from | ( | uint32_t | start_addr, |
uint32_t | size | ||
) |
Control the memory power supply by specifying start address and length.
[in] | start_addr | : the start address of memory that user want to config |
[in] | size | : the size of memory that user want to config |
void |
void platform_clock_init | ( | mcu_clock_type_t | sys_clock, |
slow_clock_type_t | slow_clock, | ||
uint16_t | accuracy, | ||
uint16_t | xo_offset | ||
) |
Platform low power clock init function.
[in] | sys_clock | System clock. |
[in] | slow_clock | External RTC setting or internal RNG_OSC/RC_32K setting. |
[in] | accuracy | : Low speed clock accuracy. |
[in] | xo_offset | : Clock calibration parameter. |
void |
void platform_init | ( | void | ) |
Platform init function.
void |
void platform_rc_calibration | ( | void | ) |
Platform rc calibration function.
void |
void platform_sdk_init | ( | void | ) |
platform sdk init function.
void |
void pmu_calibration_check_and_retry | ( | void | ) |
If the last PMU calibration failed, do the calibration again.
void |
void pmu_calibration_handler | ( | void * | p_arg | ) |
PMU calibration handler.
[in] | p_arg | : no args. |
void |
void pwr_mgmt_update_comm_wkup_timing_param | ( | void | ) |
update comm wakeup timing settings according to lf clock
void |
void pwr_mgmt_warm_boot | ( | void | ) |
Power Management warm boot.
void |
void sys_dcdc_sysldo_dcore_init | ( | void | ) |
set dcdc sysldo & digocre
void |
IRQn_Type sys_get_protect_irq | ( | void | ) |
Get the protected interrupt level.
IRQn_Type |
void sys_pmu_ddvs_dcore_adjust | ( | uint8_t | clock_type | ) |
adjust digcore with ddvs
[in] | clock_type | : clock type |
uint32_t sys_pmu_ddvs_ringo_get | ( | void | ) |
get ddvs ringo count
ringo count |
bool sys_pmu_is_ss_chip | ( | void | ) |
adjust digcore with ddvs
bool |
void sys_set_protect_irq | ( | IRQn_Type | IRQn | ) |
Set the protected interrupt level. Interrupts with a lower priority group than the protected interrupt will be blocked in pmu calibration. The default protected interrupt level is BLE_IRQn.
void |
void system_lp_table_update_twval | ( | table_idx_t | table_idx, |
int16_t | dur_offset, | ||
int16_t | ext_offset, | ||
int16_t | osc_offset | ||
) |
Enable patch function.
[in] | table_idx | : Start Index Number. |
[in] | dur_offset | : duration setting. |
[in] | ext_offset | : ext wakeup setting. |
[in] | osc_offset | : pre-wakeup setting. |
void |
void system_pmu_calibration_stop | ( | void | ) |
stop calibration.
void |
void system_pmu_deinit | ( | void | ) |
void system_pmu_init | ( | mcu_clock_type_t | clock_type | ) |
PMU init function.
[in] | clock_type | : clock type to be configured. |
void |
void system_power_mode | ( | sys_power_t | sys_power | ) |
System power starup mode.
[in] | sys_power | : System power up mode to be configured. |
void |
void tx_power_15dbm_pmu_apply | ( | void | ) |
PMU deinit function.
void |
void tx_power_normal_pmu_apply | ( | void | ) |
void warm_boot | ( | void | ) |
Warm boot process.
void |
void warm_boot_first | ( | void | ) |
the first warm boot stage.
void |
void warm_boot_second | ( | void | ) |
the second warm boot stage..
void |