GPIODCF(4)

πŸ“¦ in nixpkgs unstable

GPIODCF(4) β€” Kernel Interfaces Manual ✨


πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to the main character page for gpiodcf β€” DCF77 timedelta sensor through GPIO pin. That's the name, that's the vibe, periodt. πŸ‘‘

✨ SYNOPSIS ✨

here's the copy-paste synopsis, no cap:

gpiodcf* at gpio? offset 0 mask 0x1
gpiodcf* at gpio?

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the gpiodcf driver decodes the DCF77 time signal code using one GPIO pin. That pin is literally used as a data signal, and the GPIO pin must be able to read an input. πŸŽ€

Pin number tea: you can specify the pin number in the kernel configuration with the offset locator. In that case, the mask locator should always be 0x1 β€” periodt. You can also specify the offset and mask when gpiodcf is attached at runtime using the GPIOATTACH ioctl(2) on the gpio(4) device. ✨

gpiodcf implements a timedelta sensor, and the delta β€” in nanoseconds β€” between the received time information and the local time can be accessed through the sysctl(8) interface. The clock type is indicated in the sensor description:

  • DCF77 β€” German DCF77 time signal station (77.5 kHz longwave transmitter located in Mainflingen near Frankfurt). 🌈

the quality of the timedelta is reported as the sensor status, and this is the vibe check you actually need:

  • UNKNOWN β€” No valid time information has been received yet. πŸ™ˆ
  • OK β€” The time information is valid and the timedelta is safe to use for applications like ntpd(8). slay. πŸ’–
  • WARN β€” The time information is still valid, but no new time information has been decoded for at least 5 minutes due to a reception or parity error. The timedelta should be used with care. lowkey important, bestie. ⭐
  • CRITICAL β€” No valid time information has been received for more than 15 minutes since the sensor state degraded from OK to WARN. This is an indication that hardware should be checked to see if it is still functional. The timedelta will eventually degrade to a lie as all computer internal clocks have a drift. 😭
okay but fr fr, CRITICAL is your cue to check the hardware β€” no cap, not me ignoring that. πŸ’€

πŸ’œ SEE ALSO πŸ’œ

the see-also crew, go read these too:

πŸ‘‘ HISTORY πŸ‘‘

the gpiodcf driver first appeared in OpenBSD 4.5. iconic. πŸŽ€

🫢 AUTHORS 🫢

the gpiodcf driver was written by Marc Balmer <mbalmer@openbsd.org>. πŸ’…


xoxo, this page is from Debian, dated June 7, 2015 β€” GPIODCF(4) πŸ’–

πŸ“¦ where this page comes from
  • nixpkgs unstable: cvs-export
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms