RadiSys 6200plus Series Bedienungsanleitung Seite 141

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 275
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 140
Appendix
A
Sample
Applications
A-19
printf(”\n\nFinal Address: 0x%08.8lx”,
readAddr + finalPhysicalReadSize);
}
// Close the output file
fclose(out);
// Upload Complete command.
upload_is_complete();
// Return the edit resource to the processor.
return_edit_resource();
printf(”\n\nUpload was successfully completed.”);
return 0;
}
/***************************************************************************/
/*************************** PRIVATE FUNCTIONS *****************************/
/***************************************************************************/
/***************************************************************************/
/*************************** GET_EDIT_RESOURCE *****************************/
/***************************************************************************/
void get_edit_resource(void)
{
// This function will ask the processor for the edit resource.
PLC540V_PCCC_GER_RPY_TYPE replyPacket;
PLC540V_STATUS_TYPE status;
plc540v_pccc_get_edit_resource(kvmeSlaveAddress,
kplc540vUla,
kVME_D16_DATA_WIDTH,
kVME_A24_ADDR_SPACE,
&replyPacket,
&status);
if(status.plc540vStatus != 0)
{
printf(”\nGetting the edit resource failed.”);
exit(1);
}
}
/***************************************************************************/
/************************* RETURN_EDIT_RESOURCE ****************************/
/***************************************************************************/
void return_edit_resource(void)
{
// This function will attempt to return the edit resource to the
// processor
PLC540V_PCCC_RER_RPY_TYPE replyPacket;
PLC540V_STATUS_TYPE status;
Seitenansicht 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 274 275

Kommentare zu diesen Handbüchern

Keine Kommentare