ds2482_send_cmd_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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_CONFIG
    • DS2482_CMD_1WIRE_SINGLE_BIT
    • DS2482_CMD_1WIRE_WRITE_BYTE
    • DS2482_CMD_1WIRE_TRIPLET
  • byte β€” the data to send 🌈 literally just the byte going along for the ride with the command.

πŸŽ€ RETURN πŸŽ€

  • -1 on failure 😭 (the vibe check did not pass)
  • 0 on 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:


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