atmel_smc_cs_conf_set_pulse(9)
π atmel_smc_cs_conf_set_pulse(9)
okay so bestie, we're in the Kernel API Manual today and this one is a little function with a big name. it sets the SMC CS conf xx_PULSE parameter to a specific value. that's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
int atmel_smc_cs_conf_set_pulse (struct atmel_smc_cs_conf *conf ,
unsigned int shift , unsigned int ncycles );
πΈ ARGUMENTS πΈ
confβ the SMC CS conf descriptor. your main character struct, honestly. πshiftβ the position of thexx_PULSEfield in the PULSE register. it's giving "where does this go" energy. πncyclesβ the value you wanna assign to thisxx_PULSEparameter, and it's expressed in MCK clk cycles. clock cycles, no cap. β±οΈ
π¦ DESCRIPTION π¦
so what actually happens?? this function encodes the ncycles value exactly as described in the datasheet (section "SMC Pulse Register", iykyk) and then stores the result in the conf->setup field at shift position. chef's kiss, done. π
β¨
and the returns?? bestie, listen closely:
-EINVALβshiftis invalid. not the vibe. π-ERANGEβncyclesdoesn't fit in the field. too much for that field to hold, sadly. π0β otherwise!! everything slayed, all good. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/mfd/atmel-smc.c atmel_smc_cs_conf_init(9)atmel_smc_cs_encode_ncycles(9)atmel_smc_cs_conf_set_timing(9)atmel_smc_cs_conf_set_setup(9)atmel_smc_cs_conf_set_cycle(9)atmel_smc_cs_conf_apply(9)atmel_hsmc_cs_conf_apply(9)atmel_smc_cs_conf_get(9)atmel_hsmc_cs_conf_get(9)atmel_hsmc_get_reg_layout(9)
fr fr, go read the datasheet section before you poke at xx_PULSE β the encoding rules live there, and this page is just the messenger. π«Ά
okay that's the whole page, bestie!! this one came straight out of <purple>./drivers/mfd</purple>, dated October 2026, and the manpage itself is atmel_smc_cs_conf_set_pulse(9). mwah, go set some pulses ππβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms