Software Library API naibrd 1.62
See all documentation at naii.docs.com
nai_ether.c File Reference
#include "naibrd_config.h"
#include "nai_ether.h"
#include "advanced/nai_ether_adv.h"
#include "nai_utilities.h"
#include "naibrd.h"
#include <stdio.h>
#include <stdint.h>

Macros

#define NAI_WS2_LINUX_COMPAT
 
#define NAI_FD_SET(fd, set)    FD_SET(fd,set)
 

Functions

int32_t nai_ether_ConvertGen4RspCode (nai_ether_typecode_t typecode, int32_t offset)
 
int32_t nai_ether_GetSegmentPointer (int32_t maxPacketSize, int32_t datawidth, int32_t bufferSize, const void *dataStart, int32_t segmentCount, void **dataSegment, int32_t *segmentSize)
 
NAIFUNC nai_status_t NAIAPI nai_ether_GetSockInfo (nai_socket_t s, nai_ether_upr_type_t *outtype, uint8_t ipaddr[], uint16_t *port)
 
NAIFUNC nai_status_t NAIAPI nai_ether_CreateUDPServerSocket (nai_socket_t *outsock, uint16_t port)
 
NAIFUNC nai_status_t NAIAPI nai_ether_Open (nai_socket_t *outsock, bool_t udp, const char *ipaddr, const char *port, uint32_t timeout)
 
NAIFUNC nai_status_t NAIAPI nai_ether_Close (nai_socket_t sock)
 
NAIFUNC nai_ether_gen_t NAIAPI nai_ether_GetEtherGen (int32_t typecode)
 
NAIFUNC int32_t NAIAPI nai_ether_MessageHeader (uint8_t msgbuf[], uint16_t seq, nai_ether_typecode_t typecode, nai_ether_gen_t gen)
 
NAIFUNC int32_t NAIAPI nai_ether_FinishMessage (uint8_t msgbuf[], int32_t offset, nai_ether_gen_t gen)
 Handles filling in the message size field and the postamble fields in the message buffer.
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeMessageHeader (const uint8_t msg[], int32_t msgsize, uint16_t *seq, nai_ether_typecode_t *typecode, nai_ether_gen_t gen, int32_t *size)
 Handles decoding the Ethernet Message Header and extracting the sequence number, type code and message size.
 
NAIFUNC int32_t NAIAPI nai_ether_BeginWriteMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth)
 Handles filling in the message buffer with the data associated with the Ethernet Write Registers message. The data to be written to the Ethernet Write Registers message is handled by calling nai_ether_WriteMessageData().
 
NAIFUNC int32_t NAIAPI nai_ether_BeginWriteNoReplyMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth)
 Handles filling in the message buffer with the data associated with the Ethernet Write with No Reply Registers message. The data to be written to the Ethernet Write No Reply Registers message is handled by calling nai_ether_WriteMessageData().
 
NAIFUNC int32_t NAIAPI nai_ether_BeginSendRecvMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteRegMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t data)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeNopMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen)
 Handles filling in the message buffer with the data associated with the Ethernet NOP message.
 
NAIFUNC int32_t NAIAPI nai_ether_MakeReadMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth)
 Handles filling in the message buffer with the data associated with the Ethernet Read Registers message.
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeReadMessage (nai_ether_typecode_t typecode, nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t *count, uint32_t *regwidth, void *buffer, uint32_t bufferwidth, uint32_t buffercnt)
 Handles decoding the Ethernet Read Message and extracting the count, register width and start of the data.
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteMaskMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t regwidth, uint32_t mask, uint32_t data)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeMaskRegMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t regwidth, uint32_t mask, nai_maskreg_op_t maskop)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeFifoReadMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t dataaddr, uint32_t countaddr, uint32_t count, uint32_t regwidth, uint32_t timeout)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeFifoReadMessage (nai_ether_typecode_t typecode, const uint8_t msg[], int32_t offset, uint32_t *count, uint32_t *regwidth, void *buffer, uint32_t bufferwidth, uint32_t buffercnt, uint32_t *countRemaining)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeReadRegMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeReadRegMessage (nai_ether_typecode_t typecode, const uint8_t msg[], int32_t offset, uint32_t *value)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeSetBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, nai_intf_t intf, uint32_t regwidth, uint32_t count, uint32_t address[])
 
NAIFUNC int32_t NAIAPI nai_ether_MakeGetBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeGetBlockMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t *count, uint32_t *regcount, void *buffer, uint32_t bufferwidth, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeClearBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeReadBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 Handles filling in the message buffer with the data associated with the Ethernet Read Block message.
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeReadBlockMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t regwidth, uint32_t *datacount, void *buffer, uint32_t bufferwidth, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 Handles filling in the message buffer with the data associated with the Ethernet Write Block message.
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteNoReplyBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 Handles filling in the message buffer with the data associated with the Ethernet Write Block with No Reply message.
 
NAIFUNC int32_t NAIAPI nai_ether_MakeSetZBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint16_t addrflags[], uint32_t address[])
 
NAIFUNC int32_t NAIAPI nai_ether_MakeGetZBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeGetZBlockMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t *count, uint32_t *regcount, void *flags, void *buffer, uint32_t bufferwidth, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeClearZBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeReadZBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeReadZBlockMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t regwidth, uint32_t *datacount, void *buffer, uint32_t bufferwidth, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteZBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteNoReplyZBlockMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 
NAIFUNC int32_t NAIAPI nai_ether_MakeSetTDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid, uint16_t protocol, uint16_t iplen, uint8_t ip[], uint16_t port, uint16_t period, uint16_t cmdcount, uint8_t buffer[], uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeGetTDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeGetTDRMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t *count, uint16_t *protocol, uint16_t *iplen, uint8_t ip[], uint16_t *port, uint16_t *period, uint16_t *cmdcount, void *buffer, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeClearTDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeStartTDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeStopTDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeSetIDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t idrid, uint16_t protocol, uint16_t iplen, uint8_t ip[], uint16_t port, uint32_t vector, uint16_t cmdcount, uint8_t buffer[], uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeGetIDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeGetIDRMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t *count, uint16_t *protocol, uint16_t *iplen, uint8_t ip[], uint16_t *port, uint32_t *vector, uint16_t *cmdcount, void *buffer, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeClearIDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeStartIDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeStopIDRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeWriteScriptMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid, uint16_t cmdcount, uint8_t buffer[], uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeReadScriptMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeReadScriptMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint32_t *count, uint16_t *cmdcount, void *buffer, uint32_t buffercnt)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeClearScriptMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeExecuteScriptMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeRunScriptMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeSetSafeStateScriptIDMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeGetSafeStateScriptIDMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeGetSafeStateScriptIDMessage (nai_ether_gen_t gen, const uint8_t msg[], int32_t offset, uint16_t *scriptid)
 
NAIFUNC int32_t NAIAPI nai_ether_BeginFlashProgMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint32_t addr, uint32_t count)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeFlashProgMessage (nai_ether_typecode_t typecode, const uint8_t msg[], int32_t offset, uint32_t *count)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeFlashReadMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint32_t addr, uint32_t count)
 
NAIFUNC int32_t NAIAPI nai_ether_DecodeFlashReadMessage (nai_ether_typecode_t typecode, const uint8_t msg[], int32_t offset, uint32_t *count)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeFlashEraseMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint32_t addr)
 
NAIFUNC int32_t NAIAPI nai_ether_MakeUPRMessage (uint8_t msgbuf[], uint16_t seq, nai_ether_gen_t gen, uint8_t slot, nai_ether_upr_type_t type, const uint8_t ip[], uint16_t udpport, uint16_t vector_periodms, const uint8_t uprmsg[], int32_t uprlen)
 
NAIFUNC int32_t NAIAPI nai_ether_WriteMessageData (uint8_t msgbuf[], int32_t offset, uint32_t msgdatawidth, const void *data, uint32_t datawidth, uint32_t count)
 Handles filling in the message buffer with the data values associated with the Ethernet Write Registers message.
 
NAIFUNC int32_t NAIAPI nai_ether_ReadMessageData (void *data, uint32_t datawidth, const uint8_t msgbuf[], int32_t offset, uint32_t msgdatawidth, uint32_t count)
 
NAIFUNC int32_t NAIAPI nai_ether_WriteRxMessage (uint8_t msgbuf[], int32_t offset, uint32_t rxaddress, uint32_t rxcountaddress, uint32_t rxcount)
 
NAIFUNC int32_t NAIAPI nai_ether_ReadZBlockConfigData (void *flag, void *regaddr, const uint8_t msgbuf[], int32_t offset, uint32_t count)
 
NAIFUNC int32_t NAIAPI nai_ether_ReceiveMessage (nai_socket_t sock, uint8_t outmsg[], int32_t outmsgsize, uint16_t *respseq, nai_ether_typecode_t *resptc, nai_ether_gen_t gen, int32_t *respsize, int32_t timeout)
 
NAIFUNC int32_t NAIAPI nai_ether_SendMessage (nai_socket_t sock, const uint8_t inmsg[], int32_t inmsglen, uint8_t outmsg[], int32_t outmsgsize, uint16_t seq, nai_ether_typecode_t *resptc, nai_ether_gen_t gen, int32_t *respsize, int32_t timeout)
 
NAIFUNC nai_status_t NAIAPI nai_ether_LogIn (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, const char *password)
 
NAIFUNC nai_status_t NAIAPI nai_ether_LogOut (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen)
 
NAIFUNC nai_status_t NAIAPI nai_ether_Write (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t regwidth, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth, const void *data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_NOP (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen)
 
NAIFUNC nai_status_t NAIAPI nai_ether_Read (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t regwidth, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth, void *data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteReg (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_ReadReg (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t *data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteMask (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint32_t regwidth, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t mask, uint32_t data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_MaskReg (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint32_t regwidth, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t addr, uint32_t mask, nai_maskreg_op_t maskop)
 
NAIFUNC nai_status_t NAIAPI nai_ether_SetBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, nai_intf_t intf, uint32_t regwidth, uint32_t count, uint32_t address[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_GetBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t arraysize, uint32_t outaddress[], uint32_t *regcount)
 
NAIFUNC nai_status_t NAIAPI nai_ether_ClearBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_ReadBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t arraysize, uint32_t outdata[], uint32_t *datacount)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_SetZBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint16_t addrflags[], uint32_t address[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_GetZBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t arraysize, uint16_t outaddrflags[], uint32_t outaddress[], uint32_t *regcount)
 
NAIFUNC nai_status_t NAIAPI nai_ether_ClearZBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_ReadZBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t arraysize, uint32_t outdata[], uint32_t *datacount)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteZBlock (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_SetTDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid, uint16_t protocol, uint16_t iplen, uint8_t ip[], uint16_t port, uint16_t period, uint16_t count, uint32_t arraysize, uint8_t command[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_GetTDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid, uint16_t *protocol, uint16_t *iplen, uint8_t ip[], uint16_t *port, uint16_t *period, uint16_t *count, uint32_t arraysize, uint8_t command[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_ClearTDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_StartTDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_StopTDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t tdrid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_SetIDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t idrid, uint16_t protocol, uint16_t iplen, uint8_t ip[], uint16_t port, uint32_t vector, uint16_t count, uint32_t arraysize, uint8_t command[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_GetIDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t idrid, uint16_t *protocol, uint16_t *iplen, uint8_t ip[], uint16_t *port, uint32_t *vector, uint16_t *count, uint32_t arraysize, uint8_t command[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_ClearIDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_StartIDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_StopIDR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t idrid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteScript (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid, uint16_t count, uint32_t arraysize, uint8_t command[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_ReadScript (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid, uint16_t *count, uint32_t arraysize, uint8_t command[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_ClearScript (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_RunScript (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid, int32_t cmdcount, int32_t dataSz, int32_t *dataLen, uint8_t *data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_ExecuteScript (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_SetSafeStateScriptID (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t scriptid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_GetSafeStateScriptID (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t *scriptid)
 
NAIFUNC nai_status_t NAIAPI nai_ether_FifoRead (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t dataaddr, uint32_t countaddr, uint32_t count, uint32_t *countRemaining, uint32_t datawidth, uint32_t timeout, void *data, uint32_t *outread)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteNoReply (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t regwidth, uint32_t addr, uint32_t stride, uint32_t count, uint32_t datawidth, const void *data)
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteBlockNoReply (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_WriteZBlockNoReply (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint16_t blockid, uint32_t regwidth, uint32_t count, uint32_t data[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_1553_send_and_receive (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, nai_intf_t intf, uint32_t regwidth, uint32_t txaddress, uint32_t rxaddress, uint32_t rxcountaddress, uint32_t stride, uint32_t txcount, uint32_t width, const void *txdata, uint32_t rxcount, void *rxdata)
 
NAIFUNC nai_status_t NAIAPI nai_ether_FlashProg (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint32_t addr, uint32_t count, const uint8_t data[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_FlashRead (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint32_t addr, uint32_t count, uint8_t data[])
 
NAIFUNC nai_status_t NAIAPI nai_ether_FlashErase (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, int32_t gen, uint32_t addr)
 
NAIFUNC nai_status_t NAIAPI nai_ether_UPR (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint8_t slot, nai_ether_upr_type_t type, const uint8_t ip[], uint16_t udpport, uint16_t vector_periodms, const uint8_t uprmsg[], int32_t uprlen)
 
NAIFUNC nai_status_t NAIAPI nai_ether_DirectInterrupts (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint32_t direction)
 
NAIFUNC nai_status_t NAIAPI nai_ether_QueryDirectInterrupts (nai_socket_t sock, uint8_t msgbuf[], uint32_t msgsize, uint16_t seq, nai_ether_gen_t gen, uint32_t *outdirection)
 
NAIFUNC int32_t nai_ether_GetMsgDataWidth (nai_ether_gen_t gen, uint32_t reqwidth)
 
NAIFUNC int32_t NAIAPI nai_ether_FlushData (nai_socket_t sock, uint32_t *flushcnt)
 
NAIFUNC int32_t NAIAPI nai_ether_GetTimeout (void)
 
NAIFUNC int32_t NAIAPI nai_ether_SetTimeout (int32_t timeout)
 

Macro Definition Documentation

◆ NAI_FD_SET

#define NAI_FD_SET ( fd,
set )    FD_SET(fd,set)

◆ NAI_WS2_LINUX_COMPAT

#define NAI_WS2_LINUX_COMPAT

Function Documentation

◆ nai_ether_1553_send_and_receive()

NAIFUNC nai_status_t NAIAPI nai_ether_1553_send_and_receive ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t regwidth,
uint32_t txaddress,
uint32_t rxaddress,
uint32_t rxcountaddress,
uint32_t stride,
uint32_t txcount,
uint32_t width,
const void * txdata,
uint32_t rxcount,
void * rxdata )

◆ nai_ether_BeginFlashProgMessage()

NAIFUNC int32_t NAIAPI nai_ether_BeginFlashProgMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint32_t addr,
uint32_t count )

◆ nai_ether_BeginSendRecvMessage()

NAIFUNC int32_t NAIAPI nai_ether_BeginSendRecvMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t stride,
uint32_t count,
uint32_t datawidth )

◆ nai_ether_ClearBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_ClearBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_ClearIDR()

NAIFUNC nai_status_t NAIAPI nai_ether_ClearIDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_ClearScript()

NAIFUNC nai_status_t NAIAPI nai_ether_ClearScript ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_ClearTDR()

NAIFUNC nai_status_t NAIAPI nai_ether_ClearTDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_ClearZBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_ClearZBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_Close()

NAIFUNC nai_status_t NAIAPI nai_ether_Close ( nai_socket_t sock)

◆ nai_ether_ConvertGen4RspCode()

int32_t nai_ether_ConvertGen4RspCode ( nai_ether_typecode_t typecode,
int32_t offset )

◆ nai_ether_CreateUDPServerSocket()

NAIFUNC nai_status_t NAIAPI nai_ether_CreateUDPServerSocket ( nai_socket_t * outsock,
uint16_t port )

◆ nai_ether_DecodeFifoReadMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeFifoReadMessage ( nai_ether_typecode_t typecode,
const uint8_t msg[],
int32_t offset,
uint32_t * count,
uint32_t * regwidth,
void * buffer,
uint32_t bufferwidth,
uint32_t buffercnt,
uint32_t * countRemaining )

◆ nai_ether_DecodeFlashProgMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeFlashProgMessage ( nai_ether_typecode_t typecode,
const uint8_t msg[],
int32_t offset,
uint32_t * count )

◆ nai_ether_DecodeFlashReadMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeFlashReadMessage ( nai_ether_typecode_t typecode,
const uint8_t msg[],
int32_t offset,
uint32_t * count )

◆ nai_ether_DecodeGetBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeGetBlockMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t * count,
uint32_t * regcount,
void * buffer,
uint32_t bufferwidth,
uint32_t buffercnt )

◆ nai_ether_DecodeGetIDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeGetIDRMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t * count,
uint16_t * protocol,
uint16_t * iplen,
uint8_t ip[],
uint16_t * port,
uint32_t * vector,
uint16_t * cmdcount,
void * buffer,
uint32_t buffercnt )

◆ nai_ether_DecodeGetSafeStateScriptIDMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeGetSafeStateScriptIDMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint16_t * scriptid )

◆ nai_ether_DecodeGetTDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeGetTDRMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t * count,
uint16_t * protocol,
uint16_t * iplen,
uint8_t ip[],
uint16_t * port,
uint16_t * period,
uint16_t * cmdcount,
void * buffer,
uint32_t buffercnt )

◆ nai_ether_DecodeGetZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeGetZBlockMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t * count,
uint32_t * regcount,
void * flags,
void * buffer,
uint32_t bufferwidth,
uint32_t buffercnt )

◆ nai_ether_DecodeReadBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeReadBlockMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t regwidth,
uint32_t * datacount,
void * buffer,
uint32_t bufferwidth,
uint32_t buffercnt )

◆ nai_ether_DecodeReadRegMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeReadRegMessage ( nai_ether_typecode_t typecode,
const uint8_t msg[],
int32_t offset,
uint32_t * value )

◆ nai_ether_DecodeReadScriptMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeReadScriptMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t * count,
uint16_t * cmdcount,
void * buffer,
uint32_t buffercnt )

◆ nai_ether_DecodeReadZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_DecodeReadZBlockMessage ( nai_ether_gen_t gen,
const uint8_t msg[],
int32_t offset,
uint32_t regwidth,
uint32_t * datacount,
void * buffer,
uint32_t bufferwidth,
uint32_t buffercnt )

◆ nai_ether_DirectInterrupts()

NAIFUNC nai_status_t NAIAPI nai_ether_DirectInterrupts ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint32_t direction )

◆ nai_ether_ExecuteScript()

NAIFUNC nai_status_t NAIAPI nai_ether_ExecuteScript ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_FifoRead()

NAIFUNC nai_status_t NAIAPI nai_ether_FifoRead ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t dataaddr,
uint32_t countaddr,
uint32_t count,
uint32_t * countRemaining,
uint32_t datawidth,
uint32_t timeout,
void * data,
uint32_t * outread )

◆ nai_ether_FlashErase()

NAIFUNC nai_status_t NAIAPI nai_ether_FlashErase ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
int32_t gen,
uint32_t addr )

◆ nai_ether_FlashProg()

NAIFUNC nai_status_t NAIAPI nai_ether_FlashProg ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint32_t addr,
uint32_t count,
const uint8_t data[] )

◆ nai_ether_FlashRead()

NAIFUNC nai_status_t NAIAPI nai_ether_FlashRead ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint32_t addr,
uint32_t count,
uint8_t data[] )

◆ nai_ether_FlushData()

NAIFUNC int32_t NAIAPI nai_ether_FlushData ( nai_socket_t sock,
uint32_t * flushcnt )

◆ nai_ether_GetBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_GetBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t arraysize,
uint32_t outaddress[],
uint32_t * regcount )

◆ nai_ether_GetEtherGen()

NAIFUNC nai_ether_gen_t NAIAPI nai_ether_GetEtherGen ( int32_t typecode)

◆ nai_ether_GetIDR()

NAIFUNC nai_status_t NAIAPI nai_ether_GetIDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid,
uint16_t * protocol,
uint16_t * iplen,
uint8_t ip[],
uint16_t * port,
uint32_t * vector,
uint16_t * count,
uint32_t arraysize,
uint8_t command[] )

◆ nai_ether_GetMsgDataWidth()

NAIFUNC int32_t nai_ether_GetMsgDataWidth ( nai_ether_gen_t gen,
uint32_t reqwidth )

◆ nai_ether_GetSafeStateScriptID()

NAIFUNC nai_status_t NAIAPI nai_ether_GetSafeStateScriptID ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t * scriptid )

◆ nai_ether_GetSegmentPointer()

int32_t nai_ether_GetSegmentPointer ( int32_t maxPacketSize,
int32_t datawidth,
int32_t bufferSize,
const void * dataStart,
int32_t segmentCount,
void ** dataSegment,
int32_t * segmentSize )

◆ nai_ether_GetSockInfo()

NAIFUNC nai_status_t NAIAPI nai_ether_GetSockInfo ( nai_socket_t s,
nai_ether_upr_type_t * outtype,
uint8_t ipaddr[],
uint16_t * port )

◆ nai_ether_GetTDR()

NAIFUNC nai_status_t NAIAPI nai_ether_GetTDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid,
uint16_t * protocol,
uint16_t * iplen,
uint8_t ip[],
uint16_t * port,
uint16_t * period,
uint16_t * count,
uint32_t arraysize,
uint8_t command[] )

◆ nai_ether_GetTimeout()

NAIFUNC int32_t NAIAPI nai_ether_GetTimeout ( void )

◆ nai_ether_GetZBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_GetZBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t arraysize,
uint16_t outaddrflags[],
uint32_t outaddress[],
uint32_t * regcount )

◆ nai_ether_LogIn()

NAIFUNC nai_status_t NAIAPI nai_ether_LogIn ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
const char * password )

◆ nai_ether_LogOut()

NAIFUNC nai_status_t NAIAPI nai_ether_LogOut ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen )

◆ nai_ether_MakeClearBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeClearBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_MakeClearIDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeClearIDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_MakeClearScriptMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeClearScriptMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_MakeClearTDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeClearTDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_MakeClearZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeClearZBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_MakeExecuteScriptMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeExecuteScriptMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_MakeFifoReadMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeFifoReadMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t dataaddr,
uint32_t countaddr,
uint32_t count,
uint32_t regwidth,
uint32_t timeout )

◆ nai_ether_MakeFlashEraseMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeFlashEraseMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint32_t addr )

◆ nai_ether_MakeFlashReadMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeFlashReadMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint32_t addr,
uint32_t count )

◆ nai_ether_MakeGetBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeGetBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_MakeGetIDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeGetIDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_MakeGetSafeStateScriptIDMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeGetSafeStateScriptIDMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen )

◆ nai_ether_MakeGetTDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeGetTDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_MakeGetZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeGetZBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_MakeMaskRegMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeMaskRegMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t regwidth,
uint32_t mask,
nai_maskreg_op_t maskop )

◆ nai_ether_MakeReadRegMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeReadRegMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr )

◆ nai_ether_MakeReadScriptMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeReadScriptMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_MakeReadZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeReadZBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid )

◆ nai_ether_MakeRunScriptMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeRunScriptMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_MakeSetBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeSetBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
nai_intf_t intf,
uint32_t regwidth,
uint32_t count,
uint32_t address[] )

◆ nai_ether_MakeSetIDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeSetIDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid,
uint16_t protocol,
uint16_t iplen,
uint8_t ip[],
uint16_t port,
uint32_t vector,
uint16_t cmdcount,
uint8_t buffer[],
uint32_t buffercnt )

◆ nai_ether_MakeSetSafeStateScriptIDMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeSetSafeStateScriptIDMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_MakeSetTDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeSetTDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid,
uint16_t protocol,
uint16_t iplen,
uint8_t ip[],
uint16_t port,
uint16_t period,
uint16_t cmdcount,
uint8_t buffer[],
uint32_t buffercnt )

◆ nai_ether_MakeSetZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeSetZBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint16_t addrflags[],
uint32_t address[] )

◆ nai_ether_MakeStartIDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeStartIDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_MakeStartTDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeStartTDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_MakeStopIDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeStopIDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_MakeStopTDRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeStopTDRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_MakeUPRMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeUPRMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint8_t slot,
nai_ether_upr_type_t type,
const uint8_t ip[],
uint16_t udpport,
uint16_t vector_periodms,
const uint8_t uprmsg[],
int32_t uprlen )

◆ nai_ether_MakeWriteMaskMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeWriteMaskMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t regwidth,
uint32_t mask,
uint32_t data )

◆ nai_ether_MakeWriteNoReplyZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeWriteNoReplyZBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint32_t data[] )

◆ nai_ether_MakeWriteRegMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeWriteRegMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t data )

◆ nai_ether_MakeWriteScriptMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeWriteScriptMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid,
uint16_t cmdcount,
uint8_t buffer[],
uint32_t buffercnt )

◆ nai_ether_MakeWriteZBlockMessage()

NAIFUNC int32_t NAIAPI nai_ether_MakeWriteZBlockMessage ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint32_t data[] )

◆ nai_ether_MaskReg()

NAIFUNC nai_status_t NAIAPI nai_ether_MaskReg ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint32_t regwidth,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t mask,
nai_maskreg_op_t maskop )

◆ nai_ether_MessageHeader()

NAIFUNC int32_t NAIAPI nai_ether_MessageHeader ( uint8_t msgbuf[],
uint16_t seq,
nai_ether_typecode_t typecode,
nai_ether_gen_t gen )

◆ nai_ether_NOP()

NAIFUNC nai_status_t NAIAPI nai_ether_NOP ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen )

◆ nai_ether_Open()

NAIFUNC nai_status_t NAIAPI nai_ether_Open ( nai_socket_t * outsock,
bool_t udp,
const char * ipaddr,
const char * port,
uint32_t timeout )

◆ nai_ether_QueryDirectInterrupts()

NAIFUNC nai_status_t NAIAPI nai_ether_QueryDirectInterrupts ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint32_t * outdirection )

◆ nai_ether_Read()

NAIFUNC nai_status_t NAIAPI nai_ether_Read ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t regwidth,
uint32_t addr,
uint32_t stride,
uint32_t count,
uint32_t datawidth,
void * data )

◆ nai_ether_ReadBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_ReadBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t arraysize,
uint32_t outdata[],
uint32_t * datacount )

◆ nai_ether_ReadMessageData()

NAIFUNC int32_t NAIAPI nai_ether_ReadMessageData ( void * data,
uint32_t datawidth,
const uint8_t msgbuf[],
int32_t offset,
uint32_t msgdatawidth,
uint32_t count )

◆ nai_ether_ReadReg()

NAIFUNC nai_status_t NAIAPI nai_ether_ReadReg ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t * data )

◆ nai_ether_ReadScript()

NAIFUNC nai_status_t NAIAPI nai_ether_ReadScript ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid,
uint16_t * count,
uint32_t arraysize,
uint8_t command[] )

◆ nai_ether_ReadZBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_ReadZBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t arraysize,
uint32_t outdata[],
uint32_t * datacount )

◆ nai_ether_ReadZBlockConfigData()

NAIFUNC int32_t NAIAPI nai_ether_ReadZBlockConfigData ( void * flag,
void * regaddr,
const uint8_t msgbuf[],
int32_t offset,
uint32_t count )

◆ nai_ether_ReceiveMessage()

NAIFUNC int32_t NAIAPI nai_ether_ReceiveMessage ( nai_socket_t sock,
uint8_t outmsg[],
int32_t outmsgsize,
uint16_t * respseq,
nai_ether_typecode_t * resptc,
nai_ether_gen_t gen,
int32_t * respsize,
int32_t timeout )

◆ nai_ether_RunScript()

NAIFUNC nai_status_t NAIAPI nai_ether_RunScript ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid,
int32_t cmdcount,
int32_t dataSz,
int32_t * dataLen,
uint8_t * data )

◆ nai_ether_SendMessage()

NAIFUNC int32_t NAIAPI nai_ether_SendMessage ( nai_socket_t sock,
const uint8_t inmsg[],
int32_t inmsglen,
uint8_t outmsg[],
int32_t outmsgsize,
uint16_t seq,
nai_ether_typecode_t * resptc,
nai_ether_gen_t gen,
int32_t * respsize,
int32_t timeout )

◆ nai_ether_SetBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_SetBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
nai_intf_t intf,
uint32_t regwidth,
uint32_t count,
uint32_t address[] )

◆ nai_ether_SetIDR()

NAIFUNC nai_status_t NAIAPI nai_ether_SetIDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid,
uint16_t protocol,
uint16_t iplen,
uint8_t ip[],
uint16_t port,
uint32_t vector,
uint16_t count,
uint32_t arraysize,
uint8_t command[] )

◆ nai_ether_SetSafeStateScriptID()

NAIFUNC nai_status_t NAIAPI nai_ether_SetSafeStateScriptID ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid )

◆ nai_ether_SetTDR()

NAIFUNC nai_status_t NAIAPI nai_ether_SetTDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid,
uint16_t protocol,
uint16_t iplen,
uint8_t ip[],
uint16_t port,
uint16_t period,
uint16_t count,
uint32_t arraysize,
uint8_t command[] )

◆ nai_ether_SetTimeout()

NAIFUNC int32_t NAIAPI nai_ether_SetTimeout ( int32_t timeout)

◆ nai_ether_SetZBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_SetZBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint16_t addrflags[],
uint32_t address[] )

◆ nai_ether_StartIDR()

NAIFUNC nai_status_t NAIAPI nai_ether_StartIDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_StartTDR()

NAIFUNC nai_status_t NAIAPI nai_ether_StartTDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_StopIDR()

NAIFUNC nai_status_t NAIAPI nai_ether_StopIDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t idrid )

◆ nai_ether_StopTDR()

NAIFUNC nai_status_t NAIAPI nai_ether_StopTDR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t tdrid )

◆ nai_ether_UPR()

NAIFUNC nai_status_t NAIAPI nai_ether_UPR ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint8_t slot,
nai_ether_upr_type_t type,
const uint8_t ip[],
uint16_t udpport,
uint16_t vector_periodms,
const uint8_t uprmsg[],
int32_t uprlen )

◆ nai_ether_Write()

NAIFUNC nai_status_t NAIAPI nai_ether_Write ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t regwidth,
uint32_t addr,
uint32_t stride,
uint32_t count,
uint32_t datawidth,
const void * data )

◆ nai_ether_WriteBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint32_t data[] )

◆ nai_ether_WriteBlockNoReply()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteBlockNoReply ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint32_t data[] )

◆ nai_ether_WriteMask()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteMask ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint32_t regwidth,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t mask,
uint32_t data )

◆ nai_ether_WriteNoReply()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteNoReply ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t regwidth,
uint32_t addr,
uint32_t stride,
uint32_t count,
uint32_t datawidth,
const void * data )

◆ nai_ether_WriteReg()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteReg ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
nai_intf_t intf,
uint32_t addr,
uint32_t data )

◆ nai_ether_WriteRxMessage()

NAIFUNC int32_t NAIAPI nai_ether_WriteRxMessage ( uint8_t msgbuf[],
int32_t offset,
uint32_t rxaddress,
uint32_t rxcountaddress,
uint32_t rxcount )

◆ nai_ether_WriteScript()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteScript ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t scriptid,
uint16_t count,
uint32_t arraysize,
uint8_t command[] )

◆ nai_ether_WriteZBlock()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteZBlock ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint32_t data[] )

◆ nai_ether_WriteZBlockNoReply()

NAIFUNC nai_status_t NAIAPI nai_ether_WriteZBlockNoReply ( nai_socket_t sock,
uint8_t msgbuf[],
uint32_t msgsize,
uint16_t seq,
nai_ether_gen_t gen,
uint16_t blockid,
uint32_t regwidth,
uint32_t count,
uint32_t data[] )