sensor/bsbc/bs_tx.c
BOOL BSTX_Open( UCHAR ucAntChannel_,  USHORT usDeviceNumber_, UCHAR ucTransType_)
{
   BSTX_Init();

   ucAntChannel = ucAntChannel_;
   usDeviceNumber = usDeviceNumber_;
   ucTransType = ucTransType_;

   if(ucTransType == 0)
      ucTransType = 5;      

   if(usDeviceNumber == 0)
      usDeviceNumber = 2;
      
   if (!ANT_AssignChannel(ucAntChannel, BSTX_CHANNEL_TYPE, ANTPLUS_NETWORK_NUMBER ))
      return FALSE;
  
   // Register the timer for HRM simulator
   ucAlarmNumber = Timer_RegisterAlarm( BSTX_PulseEvent, ALARM_FLAG_CONTINUOUS);
         
   if( ucAlarmNumber == 0)
      return(FALSE);
       
   return(TRUE);
}
////////////////////////////////////////////////10////////////////////////////
// BSTX_Open
//
// Initlize BS transmitter, queues up all configuration commands. 
//
// ucDeviceNumber_: ANT channel ID device number
//
// \return: TRUE if init sucesssful. 
////////////////////////////////////////////////////////////////////////////


Initlize BS transmitter, queues up all configuration commands.

ANT channel ID device number

\return: TRUE if init sucesssful.
Initlize BS transmitter queues up all configuration commands . ANT channel ID device number \ return : TRUE if init sucesssful .
BOOL BSTX_Open( UCHAR ucAntChannel_,  USHORT usDeviceNumber_, UCHAR ucTransType_)
{
   BSTX_Init();
   ucAntChannel = ucAntChannel_;
   usDeviceNumber = usDeviceNumber_;
   ucTransType = ucTransType_;
   if(ucTransType == 0)
      ucTransType = 5;      
   if(usDeviceNumber == 0)
      usDeviceNumber = 2;
   if (!ANT_AssignChannel(ucAntChannel, BSTX_CHANNEL_TYPE, ANTPLUS_NETWORK_NUMBER ))
      return FALSE;
   ucAlarmNumber = Timer_RegisterAlarm( BSTX_PulseEvent, ALARM_FLAG_CONTINUOUS);
   if( ucAlarmNumber == 0)
      return(FALSE);
   return(TRUE);
}
BOOL BSTX_Open ( UCHAR ucAntChannel_ , USHORT usDeviceNumber_ , UCHAR ucTransType_ ) { BSTX_Init ( ) ; ucAntChannel = ucAntChannel_ ; usDeviceNumber = usDeviceNumber_ ; ucTransType = ucTransType_ ; if ( ucTransType == 0 ) ucTransType = 5 ; if ( usDeviceNumber == 0 ) usDeviceNumber = 2 ; if ( ! ANT_AssignChannel ( ucAntChannel , BSTX_CHANNEL_TYPE , ANTPLUS_NETWORK_NUMBER ) ) return FALSE ; ucAlarmNumber = Timer_RegisterAlarm ( BSTX_PulseEvent , ALARM_FLAG_CONTINUOUS ) ; if ( ucAlarmNumber == 0 ) return ( FALSE ) ; return ( TRUE ) ; }
10
BSTX_Open
10 BSTX_Open
// Register the timer for HRM simulator