Anupama B R | 08fa59e | 2025-03-06 22:55:11 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <string> |
| 4 | |
| 5 | namespace vpd |
| 6 | { |
| 7 | /** |
| 8 | * @brief class to implement single fab feature. |
| 9 | * |
| 10 | * The class hosts functionalities required to support single FAB feature. |
| 11 | * |
| 12 | */ |
| 13 | class SingleFab |
| 14 | { |
| 15 | // ToDo: public API to be implemented, which can be called by the user to |
| 16 | // support single FAB. |
| 17 | |
| 18 | private: |
| 19 | /** |
| 20 | * @brief API to get IM value from persisted location. |
| 21 | * |
| 22 | * @return IM value on success, empty string otherwise. |
| 23 | */ |
| 24 | std::string getImFromPersistedLocation() const noexcept; |
Anupama B R | b5bfcbc | 2025-03-03 03:00:04 -0600 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * @brief API to get IM value from system planar EEPROM path. |
| 28 | * |
| 29 | * @return IM value on success, empty string otherwise. |
| 30 | */ |
| 31 | std::string getImFromPlanar() const noexcept; |
RekhaAparna01 | d3e693e | 2025-03-04 05:08:30 -0600 | [diff] [blame] | 32 | |
| 33 | /** |
| 34 | * @brief API to update IM value on system planar EEPROM path. |
| 35 | * |
| 36 | * @param[in] i_imValue - IM value to be updated. |
| 37 | * |
| 38 | * @return true if value updated successfully, otherwise false. |
| 39 | */ |
| 40 | bool setImOnPlanar(const std::string& i_imValue) const noexcept; |
RekhaAparna01 | f05f354 | 2025-03-02 22:25:23 -0600 | [diff] [blame^] | 41 | |
| 42 | /** |
| 43 | * @brief API to check is field mode enabled. |
| 44 | * |
| 45 | * @return true, if field mode is enabled. otherwise false. |
| 46 | */ |
| 47 | bool isFieldModeEnabled() const noexcept; |
Anupama B R | 08fa59e | 2025-03-06 22:55:11 -0600 | [diff] [blame] | 48 | }; |
| 49 | } // namespace vpd |