Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
Board Connection - VME Setup Functions

Functions

NAIBRDFUNC nai_status_t NAIAPI naibrd_SetVMEInfo (int32_t cardIndex, int32_t slot, uint32_t addrMod)
 Sets the slot and address modifier to connect to when using naibrd_comm_t comm type: NAIBRD_COMM_VME.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_GetVMEInfo (int32_t cardIndex, int32_t *p_outSlot, uint32_t *p_outAddrMod)
 Retrieves the slot and address modifier to connect to when using naibrd_comm_t comm type: NAIBRD_COMM_VME.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SetVMEInfoEx (int32_t cardIndex, int32_t slot, bool_t geoEnable, uint32_t addrMod, uint32_t address, uint32_t size, int32_t intLevel)
 Sets a VME card's configuration to connect to when using naibrd_comm_t comm type: NAIBRD_COMM_VME.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_GetVMEInfoEx (int32_t cardIndex, int32_t *p_outslot, bool_t *p_outgeoEnable, uint32_t *p_outaddrMod, uint32_t *p_outaddress, uint32_t *p_outsize, int32_t *p_outintLevel)
 Retrieve's a VME card's configuration info.
 

Detailed Description

Function Documentation

◆ naibrd_GetVMEInfo()

NAIBRDFUNC nai_status_t NAIAPI naibrd_GetVMEInfo ( int32_t cardIndex,
int32_t * p_outSlot,
uint32_t * p_outAddrMod )

Retrieves the slot and address modifier to connect to when using naibrd_comm_t comm type: NAIBRD_COMM_VME.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
p_outSlot: (Output) VME physical slot number.
p_outAddrMod: (Output) VME address modifier.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.

◆ naibrd_GetVMEInfoEx()

NAIBRDFUNC nai_status_t NAIAPI naibrd_GetVMEInfoEx ( int32_t cardIndex,
int32_t * p_outslot,
bool_t * p_outgeoEnable,
uint32_t * p_outaddrMod,
uint32_t * p_outaddress,
uint32_t * p_outsize,
int32_t * p_outintLevel )

Retrieve's a VME card's configuration info.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
p_outslot: (Output) VME physical slot number.
p_outgeoEnable: (Output) VME Geographical Addressing enable (Fututre Support).
p_outaddrMod: (Output) VME address modifier.
p_outaddress: (Output) VME card address.
p_outsize: (Output) VME card addressing size.
p_outintLevel: (Output) VME interrupt to use (1-7).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.

◆ naibrd_SetVMEInfo()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SetVMEInfo ( int32_t cardIndex,
int32_t slot,
uint32_t addrMod )

Sets the slot and address modifier to connect to when using naibrd_comm_t comm type: NAIBRD_COMM_VME.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
slot: (Input) VME physical slot number.
addrMod: (Input) VME address modifier.
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.

◆ naibrd_SetVMEInfoEx()

NAIBRDFUNC nai_status_t NAIAPI naibrd_SetVMEInfoEx ( int32_t cardIndex,
int32_t slot,
bool_t geoEnable,
uint32_t addrMod,
uint32_t address,
uint32_t size,
int32_t intLevel )

Sets a VME card's configuration to connect to when using naibrd_comm_t comm type: NAIBRD_COMM_VME.

Parameters
cardIndex: (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1).
slot: (Input) VME physical slot number.
geoEnable: (Input) VME Geographical Addressing enable (Fututre Support).
addrMod: (Input) VME address modifier.
address: (Input) VME card address.
size: (Input) VME card addressing size.
intLevel: (Input) VME interrupt to use (1-7).
Returns
  • NAI_SUCCESS
  • NAI_ERROR_INVALID_CARD when invalid card parameter is specified.