12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef COMPENSATION_H_
- #define COMPENSATION_H_
- #define RW_TRIM_CAP_EFUSE (0)
- #define RW_TRIM_CAP_SNOR (1)
- typedef enum
- {
- TRIM_CAP_WRITE_NO_ERROR,
- TRIM_CAP_WRITE_ERR_HW,
- TRIM_CAP_WRITE_ERR_NO_RESOURSE
- } trim_cap_write_result_e;
- typedef enum
- {
- TRIM_CAP_READ_NO_ERROR,
- TRIM_CAP_READ_ADJUST_VALUE,
- TRIM_CAP_READ_ERR_HW,
- TRIM_CAP_READ_ERR_NO_WRITE,
- TRIM_CAP_ERAD_ERR_VALUE
- } trim_cap_read_result_e;
- extern int32_t freq_compensation_read(uint32_t *trim_cap, uint32_t mode);
- extern int32_t freq_compensation_write(uint32_t *trim_cap, uint32_t mode);
- extern void cap_temp_comp_start(void);
- extern void cap_temp_comp_stop(void);
- extern uint32_t cap_temp_comp_enabled(void);
- extern int freq_compensation_get_cap(uint32_t *cap);
- #endif
|