Return to previous page Return to menu Go to next page

8.2 Function details

8.2.1 CD block common

  Title  
Function specifications
  Function  
Current CD status Information acquisition
  Function Name  [SR] 
CDC_GetCurStat
  No 
1.1

 Format  Sint32 CDC_GetCurStat (CdcStat * stat)
 Input  None
 Output  stat: CD status information
 Function value  Returns an error code.
 Function  Issue a CD status information acquisition command to the CD block and display the current CD status information (Stay
  task and CD report). 

  Title  
Function specifications
  Function  
Previous CD status Get information
  Function Name  [-] 
CDC_GetLastStat
  No 
1.2

 Format  Sint32 CDC_GetLastStat (CdcStat * stat)
 Input  None
 Output  stat: CD status information
 Function value  Returns an error code.
 Function  Gets the CD status information for the previous CD block command.
 Remarks  When the CD communication interface issues a CD block command, the response status and
  Holds the CD report. This function returns the stored value. 

  Title  
Function specifications
  Function  
Regular CD status Get information
  Function Name  [-] 
CDC_GetPeriStat
  No 
1.3

 Format  Sint32 CDC_GetPeriStat (CdcStat * stat)
 Input  None
 Output  stat: CD status information
 Function value  Returns an error code.
 Function  Get CD status information by periodic response.
 Remarks  Since no command is issued to the CD block, the load is small and polling is also possible.
  However, a periodic response cannot be obtained immediately after the command / response, and a CDC_ERR_PERI error is returned.
 . To get the correct value, keep calling the function until it returns CDC_ERR_OK. 


Return to previous page Return to menu Go to next page