Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Frame address search Run
  Function Name  [SR] 
CDC_ExeFadSearch
  No 
6.6

 Format  Sint32 CDC_ExeFadSearch (Sint32 bufno, Sint32 spos, Sint32 fad)
 Input  bufno: Buffer partition number
:  spos: Sector position (CDC_SPOS_END: ​​Indicates the last sector of the section)
:  fad: Frame address
 Output  None
 Function value  Returns an error code.
 End flag  ESEL flag
 Function  Searches a sector from the specified sector position in the buffer partition using the frame address as a key. Inspection
:  To obtain search results, execute frame address search result acquisition (CDC_GetFadSearch). 

      (1) Search direction

      : Search backwards in the buffer area. (From smaller to larger sector position)

      (2) Search results

      The contents to be held as a search result include the buffer partition number, the sector position obtained by the search, Kuta frame address.

      (3) Search criteria

      [If there is no matching FAD, the nearest sector that does not exceed the specified FAD is searched. One The FAD of the Mari search result is the maximum FAD that satisfies FAD ≦ specified FAD.
      ∙ In case of an error, the sector position and FAD in the search result are as follows.

 sector position 
 frame address 
 Description 
 CDC_SPOS_ERR 
 0 
 There is no sector that satisfies the search condition. 
 CDC_FAD_ERR 
 The search could not be performed. 

  Remarks  Connectors already connected to the partition output connector will be disconnected. 

  Title  
Function specifications
  Function  
Frame address search results
  Function Name  [S-] 
CDC_GetFadSearch
  No 
6.7

 Format  Sint32 CDC_GetFadSearch (Sint32 * bufno, Sint32 * spos, Sint32 * fad)
 Input  None
 Output  bufno: Buffer partition number
  spos: Sector position
:  fad: Frame address
 Function value  Returns an error code.
 End flag  ESEL flag (only checked)
 Function  Frame address search execution result (initial value is all 0) is acquired.
  The previous search result is retained until the next search (CDC_ExeFadSearch) is executed. 


Return to previous page Return to menu Go to next page