atmel_smc_cs_conf_set_pulse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the xx_PULSE field in the PULSE register. it's giving "where does this go" energy. πŸ“
  • ncycles β€” the value you wanna assign to this xx_PULSE parameter, 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 β€” shift is invalid. not the vibe. πŸ’€
  • -ERANGE β€” ncycles doesn't fit in the field. too much for that field to hold, sadly. 😭
  • 0 β€” otherwise!! everything slayed, all good. πŸŽ‰

πŸ”₯ SEE ALSO πŸ”₯


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