<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>SensorsのトピックFXLS896xAF library: fxls896xaf_disable_interrupt() uses wrong register?</title>
    <link>https://community.nxp.com/t5/Sensors/FXLS896xAF-library-fxls896xaf-disable-interrupt-uses-wrong/m-p/1789691#M7859</link>
    <description>&lt;P&gt;The function uses the&amp;nbsp;SENS_CONFIG4 register:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint8_t fxls896xaf_disable_interrupt(fxls896xaf_driver_t *pDriver, fxls896xaf_interrupt_source_t intSource)
{
    if(NULL == pDriver)
	{
		return SENSOR_INVALIDPARAM_ERR;
	}
	uint8_t ctrlReg;
	uint8_t status = SENSOR_SUCCESS;
	status = sensor_comm_read(&amp;amp;pDriver-&amp;gt;comHandle, FXLS896xAF_SENS_CONFIG4, 1, &amp;amp;ctrlReg);
	if(status != SENSOR_SUCCESS)
	{
	    return status;
	}
	ctrlReg &amp;amp;= ~intSource;
	// disable the interrupt sources configured
	status = sensor_comm_write(&amp;amp;pDriver-&amp;gt;comHandle, FXLS896xAF_SENS_CONFIG4, 1, &amp;amp;ctrlReg);
	if(status != SENSOR_SUCCESS)
	{
	    return status;
	}
    return status;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, surely, SENS_CONFIG4 is the wrong register - it should be INT_EN ?&lt;/P&gt;&lt;P&gt;Also, the header comment has the wrong parameter descriptions (copy-paste error):&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*! @brief       The interface function to disable specified interrupt source/sources 
 *  @details     This function allow the disable the multiple source using single call.
 *  &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt;[in]   pDriver - Pointer to the driver. 
 *  &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt;[in]   ODR - ODR to be configured 
 *  &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt;[in]   pConfig, the pointer to the acceleration configuration.
 *  @return      returns the status of the operation.
 */
uint8_t fxls896xaf_disable_interrupt(fxls896xaf_driver_t *pDriver, fxls896xaf_interrupt_source_t intSource);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Feb 2026 21:34:19 GMT</pubDate>
    <dc:creator>andrewneil</dc:creator>
    <dc:date>2026-02-03T21:34:19Z</dc:date>
    <item>
      <title>FXLS896xAF library: fxls896xaf_disable_interrupt() uses wrong register?</title>
      <link>https://community.nxp.com/t5/Sensors/FXLS896xAF-library-fxls896xaf-disable-interrupt-uses-wrong/m-p/1789691#M7859</link>
      <description>&lt;P&gt;The function uses the&amp;nbsp;SENS_CONFIG4 register:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint8_t fxls896xaf_disable_interrupt(fxls896xaf_driver_t *pDriver, fxls896xaf_interrupt_source_t intSource)
{
    if(NULL == pDriver)
	{
		return SENSOR_INVALIDPARAM_ERR;
	}
	uint8_t ctrlReg;
	uint8_t status = SENSOR_SUCCESS;
	status = sensor_comm_read(&amp;amp;pDriver-&amp;gt;comHandle, FXLS896xAF_SENS_CONFIG4, 1, &amp;amp;ctrlReg);
	if(status != SENSOR_SUCCESS)
	{
	    return status;
	}
	ctrlReg &amp;amp;= ~intSource;
	// disable the interrupt sources configured
	status = sensor_comm_write(&amp;amp;pDriver-&amp;gt;comHandle, FXLS896xAF_SENS_CONFIG4, 1, &amp;amp;ctrlReg);
	if(status != SENSOR_SUCCESS)
	{
	    return status;
	}
    return status;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, surely, SENS_CONFIG4 is the wrong register - it should be INT_EN ?&lt;/P&gt;&lt;P&gt;Also, the header comment has the wrong parameter descriptions (copy-paste error):&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*! @brief       The interface function to disable specified interrupt source/sources 
 *  @details     This function allow the disable the multiple source using single call.
 *  &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt;[in]   pDriver - Pointer to the driver. 
 *  &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt;[in]   ODR - ODR to be configured 
 *  &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197964"&gt;@Param&lt;/a&gt;[in]   pConfig, the pointer to the acceleration configuration.
 *  @return      returns the status of the operation.
 */
uint8_t fxls896xaf_disable_interrupt(fxls896xaf_driver_t *pDriver, fxls896xaf_interrupt_source_t intSource);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/FXLS896xAF-library-fxls896xaf-disable-interrupt-uses-wrong/m-p/1789691#M7859</guid>
      <dc:creator>andrewneil</dc:creator>
      <dc:date>2026-02-03T21:34:19Z</dc:date>
    </item>
  </channel>
</rss>

