10 #ifndef __BRP_BALTECH_SDK_CMDS_ETH_H__ 11 #define __BRP_BALTECH_SDK_CMDS_ETH_H__ 12 #include "../typedefs.h" 13 #ifdef BALTECH_SDK_INTERNAL 17 #define BRP_Eth_ErrNoResultYet BRP_ERR_STATUS(0x4500, 0x01) 18 #endif // BALTECH_SDK_INTERNAL 19 #ifdef BALTECH_SDK_INTERNAL 23 #define BRP_Eth_ErrNotConnected BRP_ERR_STATUS(0x4500, 0x02) 24 #endif // BALTECH_SDK_INTERNAL 25 #ifdef BALTECH_SDK_INTERNAL 29 #define BRP_Eth_ErrDisabled BRP_ERR_STATUS(0x4500, 0x03) 30 #endif // BALTECH_SDK_INTERNAL 31 #ifdef BALTECH_SDK_INTERNAL 36 } brp_Eth_GetMacAdr_t;
45 #ifdef BRP_SUPPORT_LEGACY_METHODS 48 brp_errcode brp_Eth_GetMacAdr(brp_Eth_GetMacAdr_t params);
54 } brp_Eth_GetConnDevIP_t;
63 #ifdef BRP_SUPPORT_LEGACY_METHODS 66 brp_errcode brp_Eth_GetConnDevIP(brp_Eth_GetConnDevIP_t params);
70 } brp_Eth_CreateRecoveryPoint_t;
77 #ifdef BRP_SUPPORT_LEGACY_METHODS 80 brp_errcode brp_Eth_CreateRecoveryPoint(brp_Eth_CreateRecoveryPoint_t params);
84 } brp_Eth_DelRecoveryPoint_t;
91 #ifdef BRP_SUPPORT_LEGACY_METHODS 94 brp_errcode brp_Eth_DelRecoveryPoint(brp_Eth_DelRecoveryPoint_t params);
111 unsigned* AutocloseTimeout;
113 } brp_Eth_GetNetworkStatus_t;
135 #ifdef BRP_SUPPORT_LEGACY_METHODS 136 brp_errcode brp_Eth_GetNetworkStatus(
brp_protocol protocol,
unsigned* PortStatus,
brp_buf* StaticIPAdr,
brp_buf* StaticIPNetmask,
brp_buf* StaticIPGateway,
brp_buf* DHCPAdr,
brp_buf* DHCPNetmask,
brp_buf* DHCPGateway,
brp_buf* LinkLocalAdr,
brp_buf* LinkLocalNetmask,
brp_buf* LinkLocalGateway,
brp_buf* DNSAdr,
brp_buf* HostAdr,
unsigned* HostPort,
unsigned* AutocloseTimeout,
brp_mempool *mempool);
138 brp_errcode brp_Eth_GetNetworkStatus(brp_Eth_GetNetworkStatus_t params);
143 unsigned** MIBCounterList;
144 size_t* MIBCounterList_len;
146 } brp_Eth_GetMIBCounters_t;
157 #ifdef BRP_SUPPORT_LEGACY_METHODS 160 brp_errcode brp_Eth_GetMIBCounters(brp_Eth_GetMIBCounters_t params);
164 brp_Eth_GetTcpConnectionStatus_Status* Status;
165 } brp_Eth_GetTcpConnectionStatus_t;
173 #ifdef BRP_SUPPORT_LEGACY_METHODS 174 brp_errcode brp_Eth_GetTcpConnectionStatus(
brp_protocol protocol, brp_Eth_GetTcpConnectionStatus_Status* Status);
176 brp_errcode brp_Eth_GetTcpConnectionStatus(brp_Eth_GetTcpConnectionStatus_t params);
180 brp_Eth_OpenTcpConnection_ConnectionReason ConnectionReason;
181 } brp_Eth_OpenTcpConnection_t;
189 #ifdef BRP_SUPPORT_LEGACY_METHODS 190 brp_errcode brp_Eth_OpenTcpConnection(
brp_protocol protocol, brp_Eth_OpenTcpConnection_ConnectionReason _input_ConnectionReason);
192 brp_errcode brp_Eth_OpenTcpConnection(brp_Eth_OpenTcpConnection_t params);
196 } brp_Eth_CloseTcpConnection_t;
203 #ifdef BRP_SUPPORT_LEGACY_METHODS 206 brp_errcode brp_Eth_CloseTcpConnection(brp_Eth_CloseTcpConnection_t params);
208 #endif // BALTECH_SDK_INTERNAL unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.