Librairie adaptée au laboratoire 2
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Interrupts management functions
[ALS functions]
Interrupts management functions. More...
Functions | |
int | get_interrupt_status (uint8_t *status) |
Get all interrupts cause. | |
int | clear_interrupt (uint8_t IntClear) |
Clear given system interrupt condition. |
Detailed Description
Interrupts management functions.
Function Documentation
int clear_interrupt | ( | uint8_t | IntClear ) | [inherited] |
Clear given system interrupt condition.
- Function Description
- Clear given interrupt cause by writing into register SYSTEM_INTERRUPT_CLEAR register.
- Parameters:
-
dev The device IntClear Which interrupt source to clear. Use any combinations of INTERRUPT_CLEAR_RANGING , INTERRUPT_CLEAR_ALS , INTERRUPT_CLEAR_ERROR.
- Returns:
- 0 On success
int get_interrupt_status | ( | uint8_t * | status ) | [inherited] |
Get all interrupts cause.
- Parameters:
-
status Ptr to interrupt status. You can use IntrStatus_t::val
- Returns:
- 0 on success
Generated on Fri Jul 15 2022 16:10:34 by 1.7.2