AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/tc/tc.h
static inline void tc_set_direction (volatile void *tc, enum tc_dir_t dir)
  {
    if (dir == TC_UP)
      {
	((TC0_t *) tc)->CTRLFCLR |= ~TC0_DIR_bm;
      }
    else
      {
	((TC0_t *) tc)->CTRLFSET |= TC0_DIR_bm;
      }
  }
/**
 * \brief Configure Timer Direction
 *
 * \param tc Pointer to TC module.
 * \param dir Timer direction :
 */
\brief Configure Timer Direction
\param tc Pointer to TC module.
\param dir Timer direction .
\ brief Configure Timer Direction \ param tc Pointer to TC module . \ param dir Timer direction .
static inline void tc_set_direction (volatile void *tc, enum tc_dir_t dir)
  {
    if (dir == TC_UP)
      {
	((TC0_t *) tc)->CTRLFCLR |= ~TC0_DIR_bm;
      }
    else
      {
	((TC0_t *) tc)->CTRLFSET |= TC0_DIR_bm;
      }
  }
static inline void tc_set_direction ( volatile void * tc , enum tc_dir_t dir ) { if ( dir == TC_UP ) { ( ( TC0_t * ) tc ) -> CTRLFCLR |= ~ TC0_DIR_bm ; } else { ( ( TC0_t * ) tc ) -> CTRLFSET |= TC0_DIR_bm ; } }
\brief Configure Timer Direction
 \param tc Pointer to TC module.
\ brief Configure Timer Direction \ param tc Pointer to TC module .