Motorola MVME2700 Series Manuel d'utilisateur Page 374

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 508
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 373
5-42 Computer Group Literature Center Web Site
System Calls
5
.NETFRD
Name
.NETFRD - Retrieve specified file blocks
Code
$001C
Description
This routine allows you to retrieve the specified file blocks. You would use
this routine multiple times to retrieve the entire file. Prior to using this
routine a .NETFOPN system call must have been performed. For each file
block retrieved the firmware will transmit a TFTP ACK packet to
acknowledge the receipt of data. The end of data will be signified when the
number of bytes transferred is smaller than the block size. The block size
is set at 512 bytes (TFTP convention). For each .NETFRD system call
performed, you must update (increment by one) the block number field of
the command packet. Initially the block number is one.
Information about the file block is passed in a command packet which has
been built in memory. (The user program must first manually prepare the
packet.) The address of the packet is passed as an argument to the routine.
All packets must be word-aligned. The format of the packet structure,
NFILEREAD, is shown below:
FEDCBA9876543210
$00 Controller LUN Device LUN
$02 Status Word
$04
Data Transfer Address
Most Significant Word
$06 Least Significant Word
$08 Transfer Byte Count
$0A Block Number
$0C
Data Packet (File Block) Timeout
Most Significant Word
$0E Least Significant Word
Vue de la page 373
1 2 ... 369 370 371 372 373 374 375 376 377 378 379 ... 507 508

Commentaires sur ces manuels

Pas de commentaire