Lines Matching refs:configure

81 void SLCD_Init(LCD_Type *base, slcd_config_t *configure)  in SLCD_Init()  argument
83 assert(configure); in SLCD_Init()
84 assert(configure->clkConfig); in SLCD_Init()
100 gcrReg = LCD_GCR_RVEN((uint32_t)configure->powerSupply & 0x1U) | in SLCD_Init()
101 LCD_GCR_CPSEL(((uint32_t)configure->powerSupply >> 1U) & 0x1U) | in SLCD_Init()
102 LCD_GCR_VSUPPLY(((uint32_t)configure->powerSupply >> 2U) & 0x1U) | in SLCD_Init()
103 LCD_GCR_LADJ((uint32_t)configure->loadAdjust); in SLCD_Init()
105 gcrReg |= LCD_GCR_SOURCE(((uint32_t)configure->clkConfig->clkSource) & 0x1U) | in SLCD_Init()
106 …LCD_GCR_LCLK(configure->clkConfig->clkPrescaler) | LCD_GCR_ALTDIV(configure->clkConfig->altClkDivi… in SLCD_Init()
108 …gcrReg |= LCD_GCR_DUTY(configure->dutyCycle) | LCD_GCR_LCDSTP((uint32_t)configure->lowPowerBehavio… in SLCD_Init()
114 gcrReg |= LCD_GCR_LCDWAIT(((uint32_t)configure->lowPowerBehavior >> 1U) & 0x1U); in SLCD_Init()
118 gcrReg |= LCD_GCR_LCDDOZE(((uint32_t)configure->lowPowerBehavior >> 1U) & 0x1U); in SLCD_Init()
123 gcrReg |= LCD_GCR_LCDIEN(configure->frameFreqIntEnable); in SLCD_Init()
128 gcrReg |= LCD_GCR_ALTSOURCE((((uint32_t)configure->clkConfig->clkSource) >> 1U) & 0x1U); in SLCD_Init()
133 gcrReg |= LCD_GCR_FFR(configure->clkConfig->fastFrameRateEnable ? 1U : 0U); in SLCD_Init()
137 gcrReg |= LCD_GCR_RVTRIM(configure->voltageTrim); in SLCD_Init()
143 base->AR = LCD_AR_ALT((uint32_t)configure->displayMode & 0x1U) | in SLCD_Init()
144 LCD_AR_BLANK(((uint32_t)configure->displayMode >> 1U) & 0x1U); in SLCD_Init()
147 base->BPEN[0] = configure->backPlaneLowPin; in SLCD_Init()
148 base->BPEN[1] = configure->backPlaneHighPin; in SLCD_Init()
149 base->PEN[0] = configure->slcdLowPinEnabled; in SLCD_Init()
150 base->PEN[1] = configure->slcdHighPinEnabled; in SLCD_Init()
154 if (NULL != configure->faultConfig) in SLCD_Init()
157 base->FDCR = LCD_FDCR_FDPRS(configure->faultConfig->faultPrescaler) | in SLCD_Init()
158 LCD_FDCR_FDSWW(configure->faultConfig->width) | in SLCD_Init()
159 LCD_FDCR_FDBPEN(configure->faultConfig->faultDetectBackPlaneEnable ? 1U : 0U) | in SLCD_Init()
160 … LCD_FDCR_FDPINID(configure->faultConfig->faultDetectPinIndex) | LCD_FDCR_FDEN_MASK; in SLCD_Init()
161 if (configure->faultConfig->faultDetectIntEnable) in SLCD_Init()
176 if (configure->frameFreqIntEnable) in SLCD_Init()
226 void SLCD_GetDefaultConfig(slcd_config_t *configure) in SLCD_GetDefaultConfig() argument
228 assert(configure); in SLCD_GetDefaultConfig()
231 (void)memset(configure, 0, sizeof(*configure)); in SLCD_GetDefaultConfig()
235 configure->displayMode = kSLCD_NormalMode; in SLCD_GetDefaultConfig()
237 configure->powerSupply = kSLCD_InternalVll3UseChargePump; in SLCD_GetDefaultConfig()
238 configure->voltageTrim = kSLCD_RegulatedVolatgeTrim08; in SLCD_GetDefaultConfig()
240 configure->lowPowerBehavior = kSLCD_EnabledInWaitStop; in SLCD_GetDefaultConfig()
243 configure->frameFreqIntEnable = false; in SLCD_GetDefaultConfig()
246 configure->faultConfig = NULL; in SLCD_GetDefaultConfig()