Librairie adaptée au laboratoire 2

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_6180XA1 by ST

Embed: (wiki syntax)

« Back to documentation index

Interrupts management functions

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:
devThe device
IntClearWhich interrupt source to clear. Use any combinations of INTERRUPT_CLEAR_RANGING , INTERRUPT_CLEAR_ALS , INTERRUPT_CLEAR_ERROR.
Returns:
0 On success

Definition at line 1098 of file VL6180X.h.

int get_interrupt_status ( uint8_t *  status ) [inherited]

Get all interrupts cause.

Parameters:
statusPtr to interrupt status. You can use IntrStatus_t::val
Returns:
0 on success

Definition at line 1084 of file VL6180X.h.