STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
IpFromMac.hpp
Go to the documentation of this file.
1#ifndef FSW_IP_FROM_MAC_HPP
2#define FSW_IP_FROM_MAC_HPP
3
4#include <cstdint>
5#include <string>
6
7namespace fsw {
8namespace util {
9
10/** Deterministic last-octet from MAC string "aa:bb:cc:dd:ee:ff" into base_ip range. */
11std::string calculate_ip_from_mac(const std::string& mac_address, const std::string& base_ip,
12 uint8_t ip_range_start, uint8_t ip_range_end);
13
14} // namespace util
15} // namespace fsw
16
17#endif
std::string calculate_ip_from_mac(const std::string &mac_address, const std::string &base_ip, uint8_t ip_range_start, uint8_t ip_range_end)
Deterministic last-octet from MAC string "aa:bb:cc:dd:ee:ff" into base_ip range.
Definition IpFromMac.cpp:9
Motorized ball valve position: raw ADC counts -> % open.