Lines Matching full:attribute

862                                const pf1550_switch_attribute_t *attribute)  in PF1550_SetSwitchAttribute()  argument
868 assert(attribute); in PF1550_SetSwitchAttribute()
873 temp = ((attribute->enableLowPowerMode ? PF1550_SW_CTRL_LPWR_MASK : 0U) | in PF1550_SetSwitchAttribute()
874 (attribute->enableForcedPwm ? PF1550_SW_CTRL_FPWM_MASK : 0U) | in PF1550_SetSwitchAttribute()
875 (attribute->enableDischargeResistor ? PF1550_SW_CTRL_RDIS_EN_MASK : 0U)); in PF1550_SetSwitchAttribute()
878 temp |= (PF1550_SW_CTRL_DVSSPEED(attribute->dvsSpeed) | in PF1550_SetSwitchAttribute()
879 (attribute->enableForcedPwmInDvs ? PF1550_SW_CTRL_FPWM_IN_DVS_MASK : 0U)); in PF1550_SetSwitchAttribute()
887 (void)PF1550_WriteReg(handle, powerDownRegTab[module], (uint8_t)attribute->powerDownSequence); in PF1550_SetSwitchAttribute()
892 (void)PF1550_WriteReg(handle, PF1550_SW1_CTRL1, (uint8_t)attribute->currentLimit); in PF1550_SetSwitchAttribute()
896 (void)PF1550_WriteReg(handle, PF1550_SW2_CTRL1, (uint8_t)attribute->currentLimit); in PF1550_SetSwitchAttribute()
900 (void)PF1550_WriteReg(handle, PF1550_SW3_CTRL1, (uint8_t)attribute->currentLimit); in PF1550_SetSwitchAttribute()
909 …Attribute(pf1550_handle_t *handle, pf1550_module_t module, const pf1550_ldo_attribute_t *attribute) in PF1550_SetLdoAttribute() argument
912 assert(attribute); in PF1550_SetLdoAttribute()
916 (void)PF1550_WriteReg(handle, powerDownRegTab[module], (uint8_t)attribute->powerDownSequence); in PF1550_SetLdoAttribute()
923 … (attribute->enableLowPowerMode ? PF1550_LDO_CTRL_LPWR_MASK : 0U) | in PF1550_SetLdoAttribute()
924 … (attribute->enableLoadSwitch ? PF1550_LDO_CTRL_LS_EN_MASK : 0U)); in PF1550_SetLdoAttribute()
930 … (attribute->enableLowPowerMode ? PF1550_LDO_CTRL_LPWR_MASK : 0U)); in PF1550_SetLdoAttribute()
935 … (attribute->enableLowPowerMode ? PF1550_LDO_CTRL_LPWR_MASK : 0U) | in PF1550_SetLdoAttribute()
936 … (attribute->enableLoadSwitch ? PF1550_LDO_CTRL_LS_EN_MASK : 0U)); in PF1550_SetLdoAttribute()
945 …id PF1550_SetVrefDdrAttribute(pf1550_handle_t *handle, const pf1550_vrefddr_attribute_t *attribute) in PF1550_SetVrefDdrAttribute() argument
948 assert(attribute); in PF1550_SetVrefDdrAttribute()
951 …(void)PF1550_WriteReg(handle, powerDownRegTab[kPF1550_ModuleVrefDdr], (uint8_t)attribute->powerDow… in PF1550_SetVrefDdrAttribute()
954 void PF1550_SetVsnvsAttribute(pf1550_handle_t *handle, const pf1550_vsnvs_attribute_t *attribute) in PF1550_SetVsnvsAttribute() argument
957 assert(attribute); in PF1550_SetVsnvsAttribute()
961 (uint8_t)attribute->coinCellChargingVoltage | in PF1550_SetVsnvsAttribute()
962 … (attribute->enableCoinCellCharger ? PF1550_COINCELL_CONTROL_COINCHEN_MASK : 0U)); in PF1550_SetVsnvsAttribute()
966attribute->enableLocalBandgapInCoinCellMode ? PF1550_VSNVS_CTRL_LIBGDIS_MASK : 0U); in PF1550_SetVsnvsAttribute()
969 void PF1550_SetOnKeyPadAttibute(pf1550_handle_t *handle, const pf1550_onkey_attribute_t *attribute) in PF1550_SetOnKeyPadAttibute() argument
972 assert(attribute); in PF1550_SetOnKeyPadAttibute()
976 (PF1550_PWRCTRL1_ONKEYDBNC(attribute->debounce) | in PF1550_SetOnKeyPadAttibute()
977 … (attribute->enableTurnOffSystemViaOnkey ? PF1550_PWRCTRL1_ONKEY_RST_EN_MASK : 0U))); in PF1550_SetOnKeyPadAttibute()
981 (uint8_t)PF1550_PWRCTRL0_TGRESET(attribute->pushTime)); in PF1550_SetOnKeyPadAttibute()
984 …d PF1550_SetPwrOnPadAttibute(pf1550_handle_t *handle, const pf1550_power_on_attribute_t *attribute) in PF1550_SetPwrOnPadAttibute() argument
987 assert(attribute); in PF1550_SetPwrOnPadAttibute()
993 ((uint8_t)attribute->debounce | in PF1550_SetPwrOnPadAttibute()
994 (attribute->longPressGoToRegsDisableOrSleep ? PF1550_PWRCTRL1_PWRONRSTEN_MASK : 0U) | in PF1550_SetPwrOnPadAttibute()
995 (attribute->longPressRestartToRunStauts ? PF1550_PWRCTRL1_RESTARTEN_MASK : 0U))); in PF1550_SetPwrOnPadAttibute()
998 … PF1550_SetStandbyPadAttibute(pf1550_handle_t *handle, const pf1550_standby_attribute_t *attribute) in PF1550_SetStandbyPadAttibute() argument
1001 assert(attribute); in PF1550_SetStandbyPadAttibute()
1006 …(uint8_t)attribute->standbyDelay | (uint8_t)PF1550_PWRCTRL0_STANDBYINV(attribute->standbyPolarity)… in PF1550_SetStandbyPadAttibute()