ds1685_rtc_bcd2bin(9)
π ds1685_rtc_bcd2bin(9) β the Kernel API Manual glow-up π
okay bestie, so you're in the Kernel API Manual and you found ds1685_rtc_bcd2bin β honestly? iconic. this is the little bcd2bin wrapper that exists purely as a safety net in case your platform doesn't support BCD. it's giving "i brought a backup charger just in case" energy and we stan a prepared queen π
β¨ NAME β¨
ds1685_rtc_bcd2bin β it's a bcd2bin wrapper, literally just in case the platform doesn't support BCD. no cap, that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
u8 ds1685_rtc_bcd2bin (struct ds1685_priv *rtc , u8 val , u8 bcd_mask ,
u8 bin_mask );
π§ ARGUMENTS π§
okay so here's the cast of characters, and every single one of them matters:
rtcβ pointer to theds1685rtc structure. your main character, fr. πvalβ au8time value to consider converting. it's the value in question, thinking about its whole conversion journey πbcd_maskβ au8mask value, used if BCD mode is the mode in play. πbin_maskβ au8mask value, used if BIN mode is the mode in play. β¨
π DESCRIPTION π
so what does she actually do? she returns the value, converted to BIN if it was originally in BCD and bcd_mode is TRUE. that's it, that's the whole job β simple, effective, ate. π₯
ngl bestie, that "and bcd_mode TRUE" bit is doing a lot of heavy lifting β no conversion party happens unless both conditions are met. periodt. π
π SEE ALSO π
the whole friend group, assembled. every single one, in order, no gatekeeping π«Ά
- Kernel file
./drivers/rtc/rtc-ds1685.c ds1685_read(9)ds1685_write(9)ds1685_indirect_read(9)ds1685_indirect_write(9)ds1685_rtc_bin2bcd(9)ds1685_rtc_check_mday(9)ds1685_rtc_switch_to_bank0(9)ds1685_rtc_switch_to_bank1(9)ds1685_rtc_begin_data_access(9)ds1685_rtc_end_data_access(9)ds1685_rtc_get_ssn(9)ds1685_rtc_read_time(9)ds1685_rtc_set_time(9)ds1685_rtc_read_alarm(9)ds1685_rtc_set_alarm(9)ds1685_rtc_alarm_irq_enable(9)ds1685_rtc_extended_irq(9)ds1685_rtc_irq_handler(9)ds1685_rtc_proc(9)ds1685_rtc_sysfs_battery_show(9)ds1685_rtc_sysfs_auxbatt_show(9)ds1685_rtc_sysfs_serial_show(9)ds1685_rtc_probe(9)ds1685_rtc_remove(9)ds1685_rtc_poweroff(9)
and that's the whole page, bestie π shoutout to ./drivers/rtc for the source, this is the October 2026 edition, and yes she's still serving ds1685_rtc_bcd2bin(9) realness. go convert something responsibly πβ¨
π¦ 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