libnds
Functions
slot2tilt.h File Reference

Slot-2 tilt sensor. More...

#include <stdbool.h>
#include <stdint.h>

Functions

bool peripheralSlot2TiltRead (slot2TiltPosition *data)
 Read the tilt sensor values, if the sensor measurement has finished. More...
 
bool peripheralSlot2TiltStart (void)
 Start a new tilt sensor measurement. This is required before a successful read can be performed. More...
 

Detailed Description

Slot-2 tilt sensor.

Function Documentation

◆ peripheralSlot2TiltRead()

bool peripheralSlot2TiltRead ( slot2TiltPosition *  data)

Read the tilt sensor values, if the sensor measurement has finished.

Parameters
dataTilt sensor position data.
Returns
True if new values are available.
See also
peripheralSlot2TiltStart

◆ peripheralSlot2TiltStart()

bool peripheralSlot2TiltStart ( void  )

Start a new tilt sensor measurement. This is required before a successful read can be performed.

Returns
True on success.