Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
naibrd_ser_legacy.c File Reference

Functions

static nai_status_t ExtractInfoFromLegacyStatusType (nai_ser_status_type_t legacyStatusType, nai_status_access_type_t *p_outaccessType, int32_t *p_outchannel)
 
static nai_status_t ConvertOldStatusToNewStatus (nai_ser_status_t channelStatus, nai_ser_status_access_type_t accessType, naibrd_ser_event_mapped_status_type_t *p_outnewStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_TransmitBuffer (int32_t cardIndex, int32_t module, int32_t channel, int32_t width, const void *buffer, uint32_t count, uint32_t *outwritten)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ReceiveBuffer (int32_t cardIndex, int32_t module, int32_t channel, int32_t width, uint16_t outbuffer[], uint32_t length, uint32_t *outreceived)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ReceiveBuffer32 (int32_t cardIndex, int32_t module, int32_t channel, uint32_t outbuffer[], uint32_t length, uint32_t *outreceived)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetHDLCPacket (int32_t cardIndex, int32_t module, int32_t channel, uint16_t outbuffer[], uint32_t length, uint32_t *outreceived, int32_t timeoutms)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetHDLCPacket32 (int32_t cardIndex, int32_t module, int32_t channel, uint32_t outbuffer[], uint32_t length, uint32_t *outreceived, int32_t timeoutms)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelStatusEx (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_status_access_type_t type, nai_ser_status_t *outchannelStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ClearChannelStatusEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t chanStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetChannelStatus (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, nai_ser_status_t *outchannelStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ClearChannelStatus (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t chanStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetFifoStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outfifoStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_WriteByte (int32_t cardIndex, int32_t module, int32_t channel, uint8_t byteValue)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ReadByte (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_statusbyte_t *outstatusByte, uint8_t *outbyteValue)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetProtocol (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_protocol_t protocol)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetProtocol (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_protocol_t *p_outprotocol)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterfaceLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_interface_t level)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterfaceLevel (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_interface_t *p_outlevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetParity (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_parity_t parity)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetParity (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_parity_t *p_outparity)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptEnableEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t intEnable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptEnableEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outIntEnable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptEdgeLevelEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t edgeLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptEdgeLevelEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outEdgeLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptVectorEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t vector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptVectorEx (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outvector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptSteeringEx (int32_t cardIndex, int32_t module, int32_t channel, naibrd_int_steering_t steering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptSteeringEx (int32_t cardIndex, int32_t module, int32_t channel, naibrd_int_steering_t *outsteering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptEnable (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t intEnable)
 /warning This function is deprecated and has been replaced by naibrd_SER_SetEventMappedInterruptEnable().
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptEnable (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t *outIntEnable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptEdgeLevel (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t edgeLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptEdgeLevel (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t *outEdgeLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptVector (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t vector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptVector (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, uint32_t *outvector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetInterruptSteering (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, naibrd_int_steering_t steering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetInterruptSteering (int32_t cardIndex, int32_t module, nai_ser_status_type_t type, naibrd_int_steering_t *outsteering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetBITStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_ser_status_access_type_t type, bool_t *outBitStatus)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_ClearBITStatus (int32_t cardIndex, int32_t module, int32_t channel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetBITInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t intEnable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetBITInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outIntEnable)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetBITInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, bool_t edgeLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetBITInterruptEdgeLevel (int32_t cardIndex, int32_t module, int32_t channel, bool_t *outEdgeLevel)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetBITInterruptVector (int32_t cardIndex, int32_t module, uint32_t vector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetBITInterruptVector (int32_t cardIndex, int32_t module, uint32_t *outvector)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_SetBITInterruptSteering (int32_t cardIndex, int32_t module, naibrd_int_steering_t steering)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_SER_GetBITInterruptSteering (int32_t cardIndex, int32_t module, naibrd_int_steering_t *outsteering)
 

Variables

static const uint32_t NAI_SER_GEN5_InterruptEnableAddr [] = NAI_SER_GEN5_INTERRUPT_ENABLE_ADD
 
static const uint32_t NAI_SER_GEN5_InterrupEdgeLevelModeAddr [] = NAI_SER_GEN5_INTERRUPT_EDGE_LEVEL_MODE_ADD
 

Function Documentation

◆ ConvertOldStatusToNewStatus()

static nai_status_t ConvertOldStatusToNewStatus ( nai_ser_status_t channelStatus,
nai_ser_status_access_type_t accessType,
naibrd_ser_event_mapped_status_type_t * p_outnewStatus )
static

◆ ExtractInfoFromLegacyStatusType()

static nai_status_t ExtractInfoFromLegacyStatusType ( nai_ser_status_type_t legacyStatusType,
nai_status_access_type_t * p_outaccessType,
int32_t * p_outchannel )
static

Variable Documentation

◆ NAI_SER_GEN5_InterrupEdgeLevelModeAddr

const uint32_t NAI_SER_GEN5_InterrupEdgeLevelModeAddr[] = NAI_SER_GEN5_INTERRUPT_EDGE_LEVEL_MODE_ADD
static

◆ NAI_SER_GEN5_InterruptEnableAddr

const uint32_t NAI_SER_GEN5_InterruptEnableAddr[] = NAI_SER_GEN5_INTERRUPT_ENABLE_ADD
static