ads131m_verify_output_crc(9)
π ads131m_verify_output_crc(9) β like, the CRC vibe check for your SPI frame β¨
okay so welcome to the Kernel API Manual, bestie β today's main character is ads131m_verify_output_crc, and honestly? she's doing the most important job: making sure nobody lied to you over SPI. π
β¨ NAME β¨
ads131m_verify_output_crc β literally verifies the CRC of the received SPI frame. that's it, that's the whole gig. π
π¦ SYNOPSIS π¦
int ads131m_verify_output_crc (struct ads131m_priv *priv );
no cap, one argument, one int coming back at you. slay. β¨
πΈ ARGUMENTS πΈ
privβ the device private data structure. like, the whole personality of the device lives in here. π«Ά
π§ DESCRIPTION π§
okay so picture this: this function calculates the CRC-16-CCITT (Poly 0x1021, Seed 0xFFFF β write those down, they matter π
) over the received response and channel data, and then compares it to the CRC word that got received at the end of the SPI frame.
it's giving "receipt check at the door." π₯ if the math matches the word at the end of the frame, everything's iconic. if notβ¦ well. keep reading. π
π RETURN π
0on success β the vibe check passed, we're so back. π-EIOon CRC mismatch β the frame is sus, do not trust her. π
π SEE ALSO π
like, go read the kernel file first, bestie: ./drivers/iio/adc/ti-ads131m02.c π
and then the whole friend group, fr fr:
ads131m_tx_frame_unlocked(9)ads131m_rx_frame_unlocked(9)ads131m_check_status_crc_err(9)ads131m_write_reg_unlocked(9)ads131m_read_reg_unlocked(9)ads131m_rmw_reg(9)ads131m_adc_read(9)ads131m_hw_reset(9)ads131m_sw_reset(9)ads131m_reset(9)ads131m_hw_init(9)ads131m_parse_clock(9)
okay that's the whole page, mwah π β this one lives in ./drivers/iio/adc, dated October 2026, and yes the header is ads131m_verify_output_crc(9) because she's the main character of this manual page. 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