Return to previous page Return to menu Go to next page

8.2.7 Buffer I / O

Buffer I / O functions (sector data fetching, erasing, writing, copying, moving) include connector connection processing.
In other words, a single command issuance performs combined processing of device and selector connection and sector inflow / outflow. The connector already connected to the partition output connector is disconnected.
∙ An error occurs if the connector is disconnected by another device or selector during the buffer input / output operation. (See "5.3.4 Notes on selectors")

  Title  
Function specifications
  Function  
Set sector length
  Function Name  [SR] 
CDC_SetSctLen
  No  
7.1

 format  Sint32 CDC_SetSctLen (Sint32 getslen, Sint32 putslen)
 Input  getslen: Sector length when fetching
:  putslen: Sector length when writing
 Output  None
 Function value  Returns an error code.
 End flag  ESEL flag
 Function  Sets the length of one sector (sector length) in the following cases.
 Sector data retrieval (CD buffer → host)
 Sector data writing (host → CD buffer) 

      (1) Sector length

       constant name 
       description 
       CDC_SLEN_2048 
       2048 bytes (user data) …… Initial value 
      When fetching mode 2 form 2, 2324 Bytes
       CDC_SLEN_2336 
       2336 bytes (up to the subheader) 
       CDC_SLEN_2340 
       2340 bytes (up to the header) 
       CDC_SLEN_2352 
       2352 bytes (entire sector) 
       CDC_SLEN_NOCHG 
       Do not change settings 

  Remarks  The set “Sector length at extraction” is also reflected in the actual data size calculation (CDC_CalActSiz)
 .
  While calculating actual data size or transferring sector data (CDC_GetSctData, CDC_Getdel SctData,
Do not change the sector length while   CDC_PutSctData function is being processed. 


Return to previous page Return to menu Go to next page