Library to handle the X-NUCLEO-6180XA1 Proximity and ambient light sensor expansion board based on VL6180X.

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   HelloWorld_6180XA1 SunTracker_BLE Servo_6180XA1 BLE_HR_Light ... more

Fork of X_NUCLEO_6180XA1 by ST Expansion SW Team

Embed: (wiki syntax)

« Back to documentation index

IntrStatus_u Union Reference

IntrStatus_u Union Reference
[Device registers & masks definitions]

these union can be use as a generic bit field type for map RESULT_INTERRUPT_STATUS_GPIO register More...

#include <vl6180x_def.h>

Data Fields

uint8_t val
struct {
   unsigned   Range:3
   unsigned   Als:3
   unsigned   Error:2
status

Detailed Description

these union can be use as a generic bit field type for map RESULT_INTERRUPT_STATUS_GPIO register

Definition at line 602 of file vl6180x_def.h.


Field Documentation

unsigned Als

Als status one of:
RES_INT_STAT_GPIO_LOW_LEVEL_THRESHOLD
RES_INT_STAT_GPIO_HIGH_LEVEL_THRESHOLD
RES_INT_STAT_GPIO_OUT_OF_WINDOW
RES_INT_STAT_GPIO_NEW_SAMPLE_READY

Definition at line 606 of file vl6180x_def.h.

unsigned Error

Error status of:
RES_INT_ERROR_LASER_SAFETY
RES_INT_ERROR_PLL

Definition at line 607 of file vl6180x_def.h.

unsigned Range

Range status one of :
RES_INT_STAT_GPIO_LOW_LEVEL_THRESHOLD
RES_INT_STAT_GPIO_HIGH_LEVEL_THRESHOLD
RES_INT_STAT_GPIO_OUT_OF_WINDOW
RES_INT_STAT_GPIO_NEW_SAMPLE_READY

Definition at line 605 of file vl6180x_def.h.

struct { ... } status

interrupt status as bit field

uint8_t val

raw 8 bit register value

Definition at line 603 of file vl6180x_def.h.