RadiSys 6200plus Series Manual de usuario Pagina 205

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 275
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 204
Sample
API Modules
Appendix B
B-47
/* The PCCC Apply Port Configuration reply packet structure. */
typedef struct
{
UBYTE lnhHi;
UBYTE lnhLo;
UBYTE reserved[4];
UBYTE cmd;
UBYTE sts;
UWORD tns;
PLC540V_PCCC_DATA_TYPE data;
} PLC540V_PCCC_APC_RPY_TYPE;
#define kPLC540V_PCCC_APC_RPY_SIZE (sizeof(PLC540V_PCCC_APC_RPY_TYPE))
#pragma pack()
void plc540v_pccc_apply_port_config(
ULONG vmeCmdBlkAddr,
UWORD baseAddress,
VME_DATA_WIDTH_TYPE width,
VME_ADDRESS_MODIFIER_TYPE addrMod,
PLC540V_PCCC_APC_RPY_TYPE *reply,
PLC540V_STATUS_TYPE *status);
#endif
#include <stdio.h>
#include <stdlib.h>
#include <mem.h>
#include ”epc_obm.h”
#include ”epc_err.h”
#include ”busmgr.h”
#include ”p40vapc.h”
/***************************************************************************/
/************************* PRIVATE DEFINITIONS ****************************/
/***************************************************************************/
#define kPLC540V_PCCC_APC_CMD 0x0F
#define kPLC540V_PCCC_APC_FNC 0x8F
/***************************************************************************/
/************************* PRIVATE TYPE DEFINITIONS ************************/
/***************************************************************************/
/***************************************************************************/
/*************************** PRIVATE FUNCTIONS *****************************/
/***************************************************************************/
/*****************************************************************************
*
* PURPOSE: This function sends the PCCC Apply Port Configuration command
* to the PLC-5/40V.
*
* INPUT: ULONG vmeCmdBlkAddr contains the VME address where the
* command block will be copied to so the PLC-5/40V can
* access its information.
*
P40VAPC.C
Vista de pagina 204
1 2 ... 200 201 202 203 204 205 206 207 208 209 210 ... 274 275

Comentarios a estos manuales

Sin comentarios