ds2482_w1_triplet(9)
okay bestie, welcome to the ds2482_w1_triplet(9) page from the Kernel API Manual β this one is short and iconic, so let's go π
β¨ NAME β¨
ds2482_w1_triplet β performs the triplet function, which reads two bits and writes a bit. the bit written is determined by the two reads, fr fr: 00 => dbit, 01 => 0, 10 => 1. slay.
π SYNOPSIS π
u8 ds2482_w1_triplet (void *data , u8 dbit );
π ARGUMENTS π
dataβ the ds2482 channel pointer. that's the vibe.dbitβ the direction to choose if both branches are valid. you pick this when both branches are valid.
π RETURN π
b0=read1 b1=read2 b3=bit written
the layout is literally b0=read1, b1=read2, b3=bit written β that's the return vibe check π
π₯ SEE ALSO π₯
kernel file ./drivers/w1/masters/ds2482.c:
ds2482_calculate_config(9)ds2482_select_register(9)ds2482_send_cmd(9)ds2482_send_cmd_data(9)ds2482_wait_1wire_idle(9)ds2482_set_channel(9)ds2482_w1_touch_bit(9)ds2482_w1_write_byte(9)ds2482_w1_read_byte(9)ds2482_w1_reset_bus(9)
like, go read those too, bestie π
k bye bestie! source/version is ./drivers/w1/masters, dated October 2026, and this iconic page is ds2482_w1_triplet(9) β mwah π
π¦ 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