A persistent ip data structure.
More...
#include <camera.hpp>
|
| PersistentIp (tof_persistent_ip_t ptr=nullptr) |
| Construct from pointer.
|
|
| PersistentIp (StringView ip, StringView netmask, StringView gateway, bool enabled) |
| Create persistent ip.
|
|
const char * | get_ip () const |
| Get the IP address.
|
|
void | set_ip (StringView ip) |
| Set the IP address.
|
|
const char * | get_netmask () const |
| Get the netmask.
|
|
void | set_netmask (StringView netmask) |
| Set the netmask.
|
|
const char * | get_gateway () const |
| Get the gateway.
|
|
void | set_gateway (StringView gateway) |
| Set the gateway.
|
|
bool | get_enabled () const |
| Get if persistent ip is enabled.
|
|
void | set_enabled (bool enabled) |
| Set if persistent ip is enabled.
|
|
A persistent ip data structure.
Definition at line 300 of file camera.hpp.
◆ PersistentIp() [1/2]
chronoptics::tof::PersistentIp::PersistentIp |
( |
tof_persistent_ip_t |
ptr = nullptr | ) |
|
|
inline |
Construct from pointer.
Definition at line 303 of file camera.hpp.
◆ PersistentIp() [2/2]
chronoptics::tof::PersistentIp::PersistentIp |
( |
StringView |
ip, |
|
|
StringView |
netmask, |
|
|
StringView |
gateway, |
|
|
bool |
enabled |
|
) |
| |
|
inline |
Create persistent ip.
- Parameters
-
ip | IP address |
netmask | Netmask |
gateway | Gateway |
enabled | Enable or disable persistent ip |
Definition at line 313 of file camera.hpp.
◆ get_enabled()
bool chronoptics::tof::PersistentIp::get_enabled |
( |
| ) |
const |
|
inline |
Get if persistent ip is enabled.
- Returns
- Is enabled
Definition at line 360 of file camera.hpp.
◆ get_gateway()
const char * chronoptics::tof::PersistentIp::get_gateway |
( |
| ) |
const |
|
inline |
Get the gateway.
- Returns
- The gateway
Definition at line 346 of file camera.hpp.
◆ get_ip()
const char * chronoptics::tof::PersistentIp::get_ip |
( |
| ) |
const |
|
inline |
Get the IP address.
- Returns
- the IP address
Definition at line 318 of file camera.hpp.
◆ get_netmask()
const char * chronoptics::tof::PersistentIp::get_netmask |
( |
| ) |
const |
|
inline |
Get the netmask.
- Returns
- The netmask
Definition at line 332 of file camera.hpp.
◆ set_enabled()
void chronoptics::tof::PersistentIp::set_enabled |
( |
bool |
enabled | ) |
|
|
inline |
Set if persistent ip is enabled.
- Parameters
-
Definition at line 367 of file camera.hpp.
◆ set_gateway()
void chronoptics::tof::PersistentIp::set_gateway |
( |
StringView |
gateway | ) |
|
|
inline |
Set the gateway.
- Parameters
-
Definition at line 353 of file camera.hpp.
◆ set_ip()
void chronoptics::tof::PersistentIp::set_ip |
( |
StringView |
ip | ) |
|
|
inline |
Set the IP address.
- Parameters
-
Definition at line 325 of file camera.hpp.
◆ set_netmask()
void chronoptics::tof::PersistentIp::set_netmask |
( |
StringView |
netmask | ) |
|
|
inline |
Set the netmask.
- Parameters
-
Definition at line 339 of file camera.hpp.