Skip to main content
Associate III
August 12, 2024
Question

How I Could balance interrupt from as7058 and LSM6DSOXTR

  • August 12, 2024
  • 2 replies
  • 705 views

Hi to all comunity I've written the function below to reiceve interrupt from as7058 and LSM6DSOXTR but I have many and long periods that I received interrupts from as7058 only.How can I balance the receiving between them

?

void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin) {

 

if (AS7058_INT_Pin == GPIO_Pin) {

/* Handle AS7058 INT pin interrupt*/

extern void _as7058_int_pin_interrupt_callback(void);

_as7058_int_pin_interrupt_callback();

return;

}

 

if (iNEMO_INT1_Pin == GPIO_Pin) {

/* Handle here LSM6DSOXTR INT1 pin interrupt*/

return;

}

}

 

    2 replies

    Andrew Neil
    Super User
    August 12, 2024

    Please see the Posting Tips for how to properly post source code;

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/708193

     


    @rdl wrote:

     as7058


    You mean this: https://ams-osram.com/products/interfaces/analog-frontend/ams-as7058-high-performance-vital-sign-analog-frontend ?

     


    @rdl wrote:

    How can I balance the receiving between them


    Not sure what you mean by that?

    Surely, the rate at which interrupts are generated is determined by the sensors - so you configure them according to your requirements?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    rdlAuthor
    Associate III
    August 12, 2024