ads131m_write_reg_unlocked(9)
π ads131m_write_reg_unlocked(9) π
okay so this is a page from the Kernel API Manual bestie, and it is literally about writing one single register and then being a paranoid queen about it and verifying the ACK. obsessed. π
β¨ NAME β¨
ads131m_write_reg_unlocked β writes a single register and verifies the ACK. no cap, that's the whole job. π«Ά
πΈ SYNOPSIS πΈ
int ads131m_write_reg_unlocked (struct ads131m_priv *priv , u8 reg , u16 val );
π¦ ARGUMENTS π¦
privβ the device private data structure. it's giving "everything you need to know about this device lives here" energy. πregβ the 8-bit register address. yes bestie, 8-bit, keep it cute. βvalβ the 16-bit value you're gonna write in there. 16-bit, she's bigger. π
π₯ DESCRIPTION π₯
so this function performs the full 3-cycle WREG operation with Input CRC. like, the whole ritual. not me doing four steps for three cycles, iykyk π
- (Cycle 1) Sends WREG command, data, and its calculated CRC. π
- (Cycle 2) Sends NULL+CRC to retrieve the response from Cycle 1. π§
- Verifies the response is the correct ACK for the WREG. this is the vibe check fr fr β
- (Cycle 3) Sends NULL+CRC to retrieve STATUS and check for
CRC_ERR. π¨
ngl bestie, if the ACK doesn't match or CRC_ERR shows up, that's a whole situation. the function will let you know via that return value below. π
π RETURN π
0 on success, or a negative error code. that's it, that's the tea. π
π SEE ALSO π
- Kernel file
./drivers/iio/adc/ti-ads131m02.c ads131m_tx_frame_unlocked(9)ads131m_rx_frame_unlocked(9)ads131m_check_status_crc_err(9)ads131m_read_reg_unlocked(9)ads131m_rmw_reg(9)ads131m_verify_output_crc(9)ads131m_adc_read(9)ads131m_hw_reset(9)ads131m_sw_reset(9)ads131m_reset(9)ads131m_hw_init(9)ads131m_parse_clock(9)
anyway mwah π this little icon came from ./drivers/iio/adc and she's stamped October 2026, ads131m_write_reg_unlocked(9) forever and always, 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