⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radiodrv.h

📁 ct952 source code use for Digital Frame Photo
💻 H
📖 第 1 页 / 共 4 页
字号:
//  @description
//      This function be used to get mute status of volume
//  @bug    None
//  @history 2007.04.18 first version   
//  @note    
//*********************************************************************************************************
BYTE RADIODRV_GetMute(void);
//*********************************************************************************************************
//  @summary    This function be used to get band value
//  @param  None
//  @return Get band value which current setting radio system
//  @retval 0x00    Band range from 87.5~108Mhz
//  @retval 0x01    Band range from 76~108Mhz
//  @retval 0x02    Band range from 76~90Mhz
//  @description
//      This function be used to get band value for current radio system
//  @bug    None
//  @history 2007.04.18 first version   
//  @note   
//*********************************************************************************************************
BYTE RADIODRV_GetBand(void);
//*********************************************************************************************************
//  @summary    This function be used to get channel space
//  @param  None
//  @return Get current space for current radio system
//  @retval 0x00    space for 200khz
//  @retval 0x01    space for 100khz
//  @retval 0x02    space for 50khz
//  @description
//      This function be used to get current channle space setting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
BYTE RADIODRV_GetChanSpace(void);
//*********************************************************************************************************
//  @summary    This function be used to set channel space
//  @param  bChanSpace   Desire to set channel space. 0x00 for 200KHZ, 0x01 for 100KHZ and 0x02 for 50KHZ
//  @return None
//  @retval None
//  @description
//      This function be used to set channel space
//  @bug    None
//  @history 2007.04.18 first version   
//  @note      
//*********************************************************************************************************
void RADIODRV_SETChanSpace(BYTE bChanSpace);
//*********************************************************************************************************
//  @summary    This function be used to set band
//  @param  bRADIODRVband   Desire to set band value. 0x00 for 87.5~108Mhz, 0x01 for 76~108Mhz and 0x02 for 76~90Mhz
//  @return None
//  @retval None
//  @description
//      This function be used to set band
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
void RADIODRV_SETBand(BYTE bFMband); 
//*********************************************************************************************************
//  @summary    This function be used to seek station for radio tuner control
//  @param  _bSeekDir   if _bSeekDir as TRUN, the seek up direction, else _bSeekDir as FALSE, the seek down direction
//  @return Get the seek status
//  @retval TRUE    Seek station successfully
//  @retval FALSE   Seek station fail
//  @description
//      This function be used to seek station for radio tuner control
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
BYTE _RADIODRV_SEEKAction(BYTE _bSeekDir);
//*********************************************************************************************************
//  @summary    This function be used to seek station
//  @param  bSeekDIR   if _bSeekDir as TRUN, the seek up direction, else _bSeekDir as FALSE, the seek down direction
//  @return Get the seek status
//  @retval TRUE    Seek station successfully
//  @retval FALSE   Seek station fail
//  @description
//      This function be used to seek station
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_Seek(BYTE bSeekDIR); 
//*********************************************************************************************************
//  @summary    This function be used to auto scan 
//  @param  wFreq   Desired frequency which start auto scan
//  @param  wPreSetArray    Be used to record the preset stations.
//  @param  bCount          Desired total auto scan stations
//  @param  bFlag           Force to stop auto scan
//  @return Get the auto scan status
//  @retval TRUE    Get the auto scan successfully
//  @retval FALSE   Get the auto scan fail
//  @description
//      This function be used to auto scan stations
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_AutoScan(WORD wFreq,WORD* wPreSetArray, BYTE bCount, BYTE bFLAG);
//*********************************************************************************************************
//  @summary    This function be used to initiate RDS functions 
//  @param  None
//  @return None
//  @retval None
//  @description
//      This function be used to initiate RDS functions
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
void RADIODRV_RDSInit(void);
//*********************************************************************************************************
//  @summary    This function be used to check RDS type from on-air 
//  @param  bRDS_TYPE   User needs to get RDS type form on-air
//  @return Get the status of the RDS type 
//  @retval TRUE    Support RDS tpye of the on-air
//  @retval FALSE   Don't support RDS type of the on-air
//  @description
//      This function be used to check RDS type from on-air
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
BYTE RADIODRV_RDSTYPE(BYTE bRDS_TYPE);
//*********************************************************************************************************
//  @summary    This function be used to update RDS information
//  @param  bRDS_TYPE   User needs to update RDS type information
//  @param  pbRDString  User desires to display message
//  @return Get the status of updated RDS information
//  @retval TRUE    Updated the RDS information is ready
//  @retval FALSE   Updated the RDS information is un-ready
//  @description
//      This function be used to update RDS information
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_UpdateRDS(BYTE bRDS_Type, BYTE* pbRDString);
//*********************************************************************************************************
//  @summary    This function be used to access PI code form the broadcasting
//  @param  pbRDS_PI   User needs to get PI code information
//  @return Get the status of the PI code
//  @retval TRUE    Get the PI code successfully
//  @retval FALSE   Get the PI code fail
//  @description
//      This function be used to access PI code from the broadcasting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note    
//*********************************************************************************************************
BYTE RADIODRV_RDS_PI(BYTE* pbRDS_PI );
//*********************************************************************************************************
//  @summary    This function be used to access ECC info. from the broadcasting
//  @param  pbRDS_ECC   User needs to access ECC info. from the broadcasting
//  @return Get the status of the ECC code
//  @retval TRUE    Get the ECC code successfully
//  @retval FALSE   Get the ECC code fail
//  @description
//      This function be used to access ECC code from the broadcasting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_RDS_ECC(BYTE* pbRDS_ECC );
//*********************************************************************************************************
//  @summary    This function be used to access PTY info. from the broadcasting
//  @param  pbRDS_ECC   User needs to access PTY info. from the broadcasting
//  @return Get the status of the PTY info.
//  @retval TRUE    Get the PTY code successfully
//  @retval FALSE   Get the PTY code fail
//  @description
//      This function be used to access PTY code from the broadcasting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
BYTE RADIODRV_RDS_PTY(BYTE* pbRDS_PTY);
//*********************************************************************************************************
//  @summary    This function be used to access PS info. from the broadcasting
//  @param  pbRDS_PS    User needs to access PS info. from the broadcasting
//  @return Get the status of the PS info.
//  @retval TRUE    Get the PS code successfully
//  @retval FALSE   Get the PS code fail
//  @description
//      This function be used to access PS code from the broadcasting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_RDS_PS(BYTE* pbRDS_PS);
//*********************************************************************************************************
//  @summary    This function be used to access TP info. from the broadcasting
//  @param  None
//  @return Get the status of the TP info.
//  @retval TRUE    Get the TP code successfully
//  @retval FALSE   Get the TP code fail
//  @description
//      This function be used to access TP code from the broadcasting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note   
//*********************************************************************************************************
BYTE RADIODRV_RDS_TP(void);
//*********************************************************************************************************
//  @summary    This function be used to access TA info. from the broadcasting
//  @param  None
//  @return Get the status of the TA info.
//  @retval TRUE    Get the TA code successfully
//  @retval FALSE   Get the TA code fail
//  @description
//      This function be used to access TA code from the broadcasting
//  @bug    None
//  @history 2007.04.18 first version   
//  @note   
//*********************************************************************************************************
BYTE RADIODRV_RDS_TA(void);
//*********************************************************************************************************
//  @summary    This function be used to access DI info. from the broadcasting
//  @param  None
//  @return Get the status of the DI info.
//  @retval TRUE    Get the DI code successfully
//  @retval FALSE   Get the DI code fail
//  @description
//      This function be used to access DI(decoder identification) code from the broadcasting.
//      There are 4-bit used to indicate different operating modes to switch individual decoders on/off
//      and to indicate if PTY codes in the transmission are dynamically switched
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_RDS_DI(void);
//*********************************************************************************************************
//  @summary    This function be used to access RT info. from the broadcasting
//  @param  pbRDS_RT    Desired display radio text
//  @return Get the status of the RT info.
//  @retval TRUE    Get the RT info. successfully
//  @retval FALSE   Get the RT info. fail
//  @description
//      This function be used to access radio text from the broadcasting.
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
BYTE RADIODRV_RDS_RT(BYTE* pbRDS_RT);
//*********************************************************************************************************
//  @summary    This function be used to access CT info. from the broadcasting
//  @param  pbRDS_CT    Desired display date and time
//  @return Get the status of the CT info.
//  @retval TRUE    Get the CT info. successfully
//  @retval FALSE   Get the CT info. fail
//  @description
//      This function be used to access clock and time from the broadcasting.
//  @bug    None
//  @history 2007.04.18 first version   
//  @note  
//*********************************************************************************************************
BYTE RADIODRV_RDS_CT(BYTE* pbRDS_CT);
//*********************************************************************************************************
//  @summary    This function be used to access PTYN info. from the broadcasting
//  @param  pbRDS_PTYN    Desired display PTYN
//  @return Get the status of the PTYN info.
//  @retval TRUE    Get the PTYN info. successfully
//  @retval FALSE   Get the PTYN info. fail
//  @description
//      This function be used to access programme type information from the broadcasting.
//  @bug    None
//  @history 2007.04.18 first version   
//  @note     
//*********************************************************************************************************
BYTE RADIODRV_RDS_PTYN(BYTE* pbRDS_PTYN);
//*********************************************************************************************************
//  @summary    This function be used to get RDS blocks from the broadcasting
//  @param  pwRDSBlock    Get the blocks of RDS data from the broadcastings
//  @return Get the status of the blocks of RDS info.
//  @retval TRUE    Get the block of RDS info. successfully
//  @retval FALSE   Get the block of RDS info. fail
//  @description
//      This function be used to access blocks of RDS infor. from the broadcasting.
//  @bug    None
//  @history 2007.04.18 first version   
//  @note    
//*********************************************************************************************************
BYTE RADIODRV_GetRDSBlock(WORD* pwRDSBlock);
//BYTE RADIODRV_RDS_RT(BYTE* pbRDS_RT);

#ifdef __cplusplus
   }
#endif

#endif  // __HDEVICE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -