sbgECom Library
4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
|
Ethernet configuration related commands. More...
Go to the source code of this file.
Data Structures | |
struct | _SbgEComEthernetConf |
Typedefs | |
typedef enum _SbgEComEthernetMode | SbgEComEthernetMode |
typedef struct _SbgEComEthernetConf | SbgEComEthernetConf |
Enumerations | |
enum | _SbgEComEthernetMode { SBG_ECOM_ETHERNET_DHCP = 0 , SBG_ECOM_ETHERNET_STATIC = 1 } |
Functions | |
SbgErrorCode | sbgEComEthernetGetConf (SbgEComHandle *pHandle, SbgEComEthernetConf *pEthernetConf) |
SbgErrorCode | sbgEComEthernetSetConf (SbgEComHandle *pHandle, const SbgEComEthernetConf *pEthernetConf) |
SbgErrorCode | sbgEComEthernetInfo (SbgEComHandle *pHandle, SbgEComEthernetConf *pEthernetConf) |
Ethernet configuration related commands.
The MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
typedef enum _SbgEComEthernetMode SbgEComEthernetMode |
Enum that defines the different type of IP acquisition method.
typedef struct _SbgEComEthernetConf SbgEComEthernetConf |
Structure that contains all Ethernet configuration or settings.
enum _SbgEComEthernetMode |
SbgErrorCode sbgEComEthernetGetConf | ( | SbgEComHandle * | pHandle, |
SbgEComEthernetConf * | pEthernetConf | ||
) |
Get the configuration for the Ethernet interface.
Warning: this method only returns the Ethernet configuration and NOT the IP address currently used by the device. You should rather use sbgEComEthernetInfo to retrieve the current assigned IP.
[in] | pHandle | A valid sbgECom handle. |
[out] | pEthernetConf | SbgEComEthernetConf struct to hold the read configuration from the device. |
SbgErrorCode sbgEComEthernetSetConf | ( | SbgEComHandle * | pHandle, |
const SbgEComEthernetConf * | pEthernetConf | ||
) |
Set the configuration for the Ethernet interface.
[in] | pHandle | A valid sbgECom handle. |
[in] | pEthernetConf | SbgEComEthernetConf struct to hold the new configuration to apply. |
SbgErrorCode sbgEComEthernetInfo | ( | SbgEComHandle * | pHandle, |
SbgEComEthernetConf * | pEthernetConf | ||
) |
Get the current assigned and used IP address as well as network information.
In opposition to sbgEComEthernetGetConf, this method will not return the Ethernet configuration. It will rather return the IP address currently used by the device.
[in] | pHandle | A valid sbgECom handle. |
[out] | pEthernetConf | SbgEComEthernetConf struct to hold the read IP settings from the device. |