ads131m_read_reg_unlocked(9)
β¨ ads131m_read_reg_unlocked β¨
okay so bestie, welcome to the Kernel API Manual entry for ads131m_read_reg_unlocked β yes it's a mouthful, yes it's iconic, we move π
π NAME π
ads131m_read_reg_unlocked β literally just reads a single register from the device. one register. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int ads131m_read_reg_unlocked (struct ads131m_priv *priv , u8 reg , u16
*val );
π ARGUMENTS π
privβ the device private data structure, aka the whole personality of the device, slay π«Άregβ the 8-bit register address. 8 bits. tiny. precious. πvalβ pointer to store the 16-bit register value. yes 16-bit, not 8, don't come for me, that's just how it is ngl π
β DESCRIPTION β
so this function performs the full 3-cycle RREG operation with Input CRC. three whole cycles, bestie. it's giving commitment. let's break it down step by step like a little choreography π§
- (Cycle 1) Sends the RREG command + Input CRC.
- (Cycle 2) Sends NULL+CRC to retrieve the register data.
- (Cycle 3) Sends NULL+CRC to retrieve STATUS and check for
CRC_ERR.
no cap, that's the entire bit. cycle one asks, cycle two gets the actual data, cycle three grabs STATUS and does the CRC error vibe check. main character energy from a register read fr fr π₯
π₯ RETURN π₯
0 on success, or a negative error code. that's it, that's the deal. if it's not 0 just know something went sideways π
π 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_write_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)
and that's the page bestie, no crumbs left π it lives over in ./drivers/iio/adc, dated October 2026, and it's filed under ads131m_read_reg_unlocked(9) β go read a register, ily, bye ππ
π¦ 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