ds2482_send_cmd_data(9)
β¨ ds2482_send_cmd_data β¨
okay so bestie, welcome to the ds2482_send_cmd_data page from the Kernel API Manual π
this one is short and sweet and honestly kind of iconic β it's the little helper that sends a command plus a parameter byte out to your DS2482 chip. no cap, tiny function, big main character energy π
πΈ SYNOPSIS πΈ
int ds2482_send_cmd_data (struct ds2482_data *pdev , u8 cmd , u8 byte );
like, literally that's the whole vibe. three args, one int back. slay π«Ά
π¦ ARGUMENTS π¦
pdevβ the ds2482 client pointer π this is your little handle to the device, the whole reason we're here fr fr.cmdβ the command you're sending. and bestie, it has to be one of these four, no substitutions:DS2482_CMD_WRITE_CONFIGDS2482_CMD_1WIRE_SINGLE_BITDS2482_CMD_1WIRE_WRITE_BYTEDS2482_CMD_1WIRE_TRIPLET
byteβ the data to send π literally just the byte going along for the ride with the command.
π RETURN π
-1on failure π (the vibe check did not pass)0on success β¨ (ate, no notes)
ngl, keep an eye on that -1 β it's the only heads-up you get that something went wrong.
π SEE ALSO π
the kernel file lives at ./drivers/w1/masters/ds2482.c and honestly there's a whole friend group in there, go say hi to all of them:
ds2482_calculate_config(9)ds2482_select_register(9)ds2482_send_cmd(9)ds2482_wait_1wire_idle(9)ds2482_set_channel(9)ds2482_w1_touch_bit(9)ds2482_w1_triplet(9)ds2482_w1_write_byte(9)ds2482_w1_read_byte(9)ds2482_w1_reset_bus(9)
and that's the whole page, bestie π this little icon dropped in October 2026, lives in ./drivers/w1/masters, and is brought to you by the Kernel API Manual β stan the kernel docs, periodt ππ¦π
π¦ 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