mbgtools-lx  4.2.8
Definitions for power control API

Data Structures

struct  MBG_PWR_CTL
 Device power control. More...
 

Macros

#define _mbg_swab_mbg_pwr_ctl(_p)
 

Enumerations

enum  MBG_PWR_STATES { MBG_PWR_STATE_OFF, MBG_PWR_STATE_ON, N_MBG_PWR_STATES }
 Device power states. More...
 

Detailed Description

Note
These structures and definitions are only supported by a device if MBG_XFEATURE_PWR_CTL_API is set in the extended device features.

Macro Definition Documentation

◆ _mbg_swab_mbg_pwr_ctl

#define _mbg_swab_mbg_pwr_ctl (   _p)
Value:
do \
{ \
_mbg_swab8( &(_p)->state ); \
_mbg_swab8( &(_p)->reserved_0 ); \
_mbg_swab16( &(_p)->reserved_1 ); \
} while ( 0 )

Definition at line 19200 of file gpsdefs.h.

Referenced by mbgextio_get_pwr_ctl(), and mbgextio_set_pwr_ctl().

Enumeration Type Documentation

◆ MBG_PWR_STATES

Device power states.

Used with MBG_PWR_CTL::state.

Enumerator
MBG_PWR_STATE_OFF 
MBG_PWR_STATE_ON 
N_MBG_PWR_STATES 

Definition at line 19178 of file gpsdefs.h.