AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/common/services/clock/xmega/sysclk.h
static inline bool sysclk_module_is_enabled (enum sysclk_port_id port,
					       uint8_t id)
  {
    uint8_t mask = *((uint8_t *) & PR.PRGEN + port);
    return (mask & id) == 0;
  }
/**
 * \brief Check if the synchronous clock is enabled for a module
 *
 * \param port ID of the port to which the module is connected (one of
 * the \c SYSCLK_PORT_* definitions).
 * \param id The ID (bitmask) of the peripheral module to check (one of
 * the \c SYSCLK_* module definitions).
 *
 * \retval true If the clock for module \a id on \a port is enabled.
 * \retval false If the clock for module \a id on \a port is disabled.
 */
\brief Check if the synchronous clock is enabled for a module
\param port ID of the port to which the module is connected (one of
the \c SYSCLK_PORT_* definitions).
\param id The ID (bitmask) of the peripheral module to check (one of
the \c SYSCLK_* module definitions).

\retval true If the clock for module \a id on \a port is enabled.
\retval false If the clock for module \a id on \a port is disabled.
\ brief Check if the synchronous clock is enabled for a module \ param port ID of the port to which the module is connected ( one of the \ c SYSCLK_PORT_ * definitions ) . \ param id The ID ( bitmask ) of the peripheral module to check ( one of the \ c SYSCLK_ * module definitions ) . \ retval true If the clock for module \ a id on \ a port is enabled . \ retval false If the clock for module \ a id on \ a port is disabled .
static inline bool sysclk_module_is_enabled (enum sysclk_port_id port,
					       uint8_t id)
  {
    uint8_t mask = *((uint8_t *) & PR.PRGEN + port);
    return (mask & id) == 0;
  }
static inline bool sysclk_module_is_enabled ( enum sysclk_port_id port , uint8_t id ) { uint8_t mask = * ( ( uint8_t * ) & PR . PRGEN + port ) ; return ( mask & id ) == 0 ; }
\brief Check if the synchronous clock is enabled for a module
 \param port ID of the port to which the module is connected (one of
 the \c SYSCLK_PORT_* definitions).
\ brief Check if the synchronous clock is enabled for a module \ param port ID of the port to which the module is connected ( one of the \ c SYSCLK_PORT_ * definitions ) .