parameters.h 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168
  1. /********************************* (C) РОТЕК ***********************************
  2. * @module parameters
  3. * @file parameters.h
  4. * @version 1.0.0
  5. * @date XX.XX.XXXX
  6. * $brief parameters
  7. *******************************************************************************
  8. * @history Version Author Comment
  9. * XX.XX.XXXX 1.0.0 Telenkov D.A. First release.
  10. *******************************************************************************
  11. */
  12. /* Define to prevent recursive ----------------------------------------------*/
  13. #ifndef PARAMETERS_H
  14. #define PARAMETERS_H
  15. #include <stdbool.h>
  16. #include "common_config.h"
  17. // ************************************************************************** //
  18. // Параметры UPS
  19. void GetInputFreqStr(char *str, uint8_t *len);
  20. void GetInputFreqInt(float *value);
  21. void GetOutputFreqStr(char *str, uint8_t *len);
  22. void GetInputVoltageStr(char *str, uint8_t *len);
  23. void GetInputVoltageInt(float *value);
  24. void GetOutputVoltageStr(char *str, uint8_t *len);
  25. void GetOutputVoltageInt(float *value);
  26. void GetPowerStr(char *str, uint8_t *len);
  27. void GetPowerInt(int32_t *value);
  28. void GetBatCapacityStr(char *str, uint8_t *len);
  29. void GetBatCapacityInt(int32_t *value);
  30. void GetRuntimeStr(char *str, uint8_t *len);
  31. void GetRuntimeInt(int32_t *value);
  32. void GetAKBWorktimeStr(char *str, uint8_t *len);
  33. void GetAKBWorktimeInt(int32_t *value);
  34. void GetInternalTempStr(char *str, uint8_t *len);
  35. void GetInternalTempInt(float *value);
  36. /**
  37. * @brief
  38. */
  39. void GetAlarmMonitorStr(char *str, uint8_t *len);
  40. void GetConnectMonitorStr(char *str, uint8_t *len);
  41. /**
  42. * @brief
  43. */
  44. void GetInputCurrentStr(char *str, uint8_t *len);
  45. /**
  46. * @brief
  47. */
  48. void GetInputCurrentInt(float *value);
  49. /**
  50. * @brief
  51. */
  52. void GetOutputCurrentStr(char *str, uint8_t *len);
  53. /**
  54. * @brief
  55. */
  56. void GetOutputCurrentInt(float *value);
  57. /**
  58. * @brief
  59. */
  60. void GetVoltageAKBtStr(char *str, uint8_t *len);
  61. /**
  62. * @brief
  63. */
  64. void GetVoltageAKBInt(float *value);
  65. /**
  66. * @brief Режим работы
  67. */
  68. void GetModeStr(char *str, uint8_t *len);
  69. /**
  70. * @brief Режим работы
  71. */
  72. void GetModeEn(char *str, uint8_t *len);
  73. /**
  74. * @brief Индикация аварийных ситуаций
  75. * TODO добавить реальный параметр
  76. */
  77. void GetAlarmStr(char *str, uint8_t *len);
  78. /**
  79. * @brief Индикация аварийных ситуаций
  80. */
  81. void GetUPSAlarmStr(char *str, uint8_t *len);
  82. /**
  83. * @brief Индикация аварийных ситуаций
  84. */
  85. void GetAKBAlarmStr(char *str, uint8_t *len);
  86. /**
  87. * @brief Индикация аварийных ситуаций
  88. */
  89. void GetConnectUPSAlarmStr(char *str, uint8_t *len);
  90. /**
  91. * @brief Индикация аварийных ситуаций
  92. */
  93. void GetUPSModeStr(char *str, uint8_t *len);
  94. /**
  95. * @brief Текущее время ч/м/с
  96. */
  97. void GetCurrentTimeStr(char *str, uint8_t *len);
  98. // ************************************************************************** //
  99. // Параметры даты и времени
  100. /**
  101. * @brief Дата (Ready for PRS!)
  102. */
  103. void GetDateStr(char *str, uint8_t *len);
  104. /**
  105. * @brief Время (Ready for PRS!)
  106. */
  107. void GetTimeStr(char *str, uint8_t *len);
  108. /**
  109. * @brief Время (Ready for PRS!)
  110. */
  111. void GetUnixTimeStr(char *str, uint8_t *len);
  112. // ************************************************************************** //
  113. // Параметры SNTP
  114. /**
  115. * @brief Состояние SNTP (Ready for PRS!)
  116. */
  117. void GetSntpStateStr(char *str, uint8_t *len);
  118. /**
  119. * @brief Состояние SNTP (Ready for PRS!)
  120. */
  121. void GetSntpStateStrRU(char *str, uint8_t *len);
  122. /**
  123. * @brief IP адрес SNTP сервера (Ready for PRS!)
  124. */
  125. void GetSntpServerIpStr(char *str, uint8_t *len);
  126. /**
  127. * @brief Часовой пояс контроллера (Ready for PRS!)
  128. */
  129. void GetSntpTimeZoneStr(char *str, uint8_t *len);
  130. /**
  131. * @brief Дата последней синхронизации SNTP (Ready for PRS!)
  132. */
  133. void GetSntpLastDataStr(char *str, uint8_t *len);
  134. // ************************************************************************** //
  135. // Информация
  136. // ************************************************************************** //
  137. // Настройки аутентификации
  138. void GetUserLogin(uint8_t user_id, char *str, uint8_t *len);
  139. void GetUserPassword(uint8_t user_id, char *str, uint8_t *len);
  140. void GetUserLevel(uint8_t user_id, char *str, uint8_t *len);
  141. void GetUserLevelInt(uint8_t user_id, uint8_t *value);
  142. /**
  143. * @brief Время работы устройства
  144. */
  145. void GetWorkTimeStr(char *str, uint8_t *len);
  146. /**
  147. * @brief Модель устройства
  148. */
  149. void GetModelStr(char *str, uint8_t *len);
  150. /**
  151. * @brief Название устройсва устройства
  152. */
  153. void GetNameDeviceStr(char *str, uint8_t *len);
  154. /**
  155. * @brief Дата производства
  156. */
  157. void GetProductionDataStr(char *str, uint8_t *len);
  158. /**
  159. * @brief Версия ПО
  160. */
  161. void GetVersionStr(char *str, uint8_t *len);
  162. /**
  163. * @brief MAC адрес устройства
  164. */
  165. void GetMacStr(char *str, uint8_t *len);
  166. /**
  167. * @brief Серийный номер устройства
  168. */
  169. void GetSerialNumberStr(char *str, uint8_t *len);
  170. /**
  171. * @brief Владелец устройства
  172. */
  173. void GetOwnerStr(char *str, uint8_t *len);
  174. /**
  175. * @brief Местоположение устройства
  176. */
  177. void GetLocationStr(char *str, uint8_t *len);
  178. /**
  179. * @brief Комментарии
  180. */
  181. void GetCommentsStr(char *str, uint8_t *len);
  182. /**
  183. * @brief Серийный номер UPS
  184. */
  185. void GetUPSSerialStr(char *str, uint8_t *len);
  186. /**
  187. * @brief Модель UPS
  188. */
  189. void GetUPSModelStr(char *str, uint8_t *len);
  190. /**
  191. * @brief Версия UPS ПО
  192. */
  193. void GetUPSVersionStr(char *str, uint8_t *len);
  194. #ifdef NOTIFICATION_CONTROL_ENABLE
  195. // ************************************************************************** //
  196. // Параметры уведомления
  197. /**
  198. * @brief Параметр разрешения отправки трапа
  199. */
  200. void GetNotificationTrapsStateStr(char *str, uint8_t *len, uint8_t num);
  201. /**
  202. * @brief Параметр разрешения отправки трапа
  203. */
  204. void GetNotificationTrapsStateStr2(char *str, uint8_t *len, uint8_t num);
  205. /**
  206. * @brief Длинное имя трапа
  207. */
  208. void GetTrapLongNameStr(char *str, uint8_t *len, uint8_t num);
  209. #endif
  210. // ************************************************************************** //
  211. // Параметры WEB
  212. /**
  213. * @brief Текущий IP адрес
  214. */
  215. void GetIpStr(char *str, uint8_t *len);
  216. /**
  217. * @brief Текущий шлюз
  218. */
  219. void GetGatewayStr(char *str, uint8_t *len);
  220. /**
  221. * @brief Текущая маска подсети
  222. */
  223. void GetMaskStr(char *str, uint8_t *len);
  224. /**
  225. * @brief Настройка DHCP
  226. */
  227. void GetDhcpStateStr(char *str, uint8_t *len);
  228. /**
  229. * @brief Настройка DHCP
  230. */
  231. void GetDhcpStateUDP(char *str, uint8_t *len);
  232. /**
  233. * @brief Настройка DHCP
  234. */
  235. void GetDhcpStateStrRu(char *str, uint8_t *len);
  236. #ifdef WHITELIST_ENABLE
  237. // ************************************************************************** //
  238. // Параметры довверительных хостов
  239. /**
  240. * @brief диапазон доверительных хостов
  241. */
  242. void GetWhiteListSTR(char *str, uint8_t *len, uint8_t num);
  243. /**
  244. * @brief первый диапазон доверительных хостов
  245. */
  246. void GetWhiteList1STR(char *str, uint8_t *len);
  247. /**
  248. * @brief второй диапазон доверительных хостов
  249. */
  250. void GetWhiteList2STR(char *str, uint8_t *len);
  251. /**
  252. * @brief третий диапазон доверительных хостов
  253. */
  254. void GetWhiteList3STR(char *str, uint8_t *len);
  255. /**
  256. * @brief четвертый диапазон доверительных хостов
  257. */
  258. void GetWhiteList4STR(char *str, uint8_t *len);
  259. /**
  260. * @brief пятый диапазон доверительных хостов
  261. */
  262. void GetWhiteList5STR(char *str, uint8_t *len);
  263. /**
  264. * @brief маска диапазона доверительных хостов
  265. */
  266. void GetWhiteListMask(uint32_t *value, uint8_t num);
  267. /**
  268. * @brief ip диапазона доверительных хостов
  269. */
  270. void GetWhiteListIP(uint32_t *value, uint8_t num);
  271. #endif
  272. #ifdef PORTGW_ENABLE
  273. // ************************************************************************** //
  274. // Параметры прозрачного порта
  275. /**
  276. * @brief Включен/Выключен
  277. */
  278. void GetPortGwEnabledStr(char *str, uint8_t *len);
  279. /**
  280. * @brief IP-адрес
  281. */
  282. void GetPortGwIpStr(char *str, uint8_t *len);
  283. /**
  284. * @brief Сетевой порт
  285. */
  286. void GetPortGwPortnumStr(char *str, uint8_t *len);
  287. /**
  288. * @brief Скорость передачи данных
  289. */
  290. void GetPortGwBaudStr(char *str, uint8_t *len);
  291. /**
  292. * @brief Четность
  293. */
  294. void GetPortGwParityStr(char *str, uint8_t *len);
  295. /**
  296. * @brief Число бит данных
  297. */
  298. void GetPortGwDatabitsStr(char *str, uint8_t *len);
  299. /**
  300. * @brief Число стоп-бит
  301. */
  302. void GetPortGwStopbitsStr(char *str, uint8_t *len);
  303. #endif
  304. // ************************************************************************** //
  305. // Параметры SNMP
  306. /**
  307. * @brief Текущее TRAP community
  308. */
  309. void GetTrapCommunity(char *str, uint8_t *len);
  310. /**
  311. * @brief Текущее community для чтения
  312. */
  313. void GetReadCommunity(char *str, uint8_t *len);
  314. /**
  315. * @brief Текущее community для записи
  316. */
  317. void GetWriteCommunity(char *str, uint8_t *len);
  318. /**
  319. * @brief IP SNMP менеджера
  320. */
  321. void GetManagerIp(char *str, uint8_t *len);
  322. void GetManagerIp2(char *str, uint8_t *len);
  323. void GetManagerIp3(char *str, uint8_t *len);
  324. void GetManagerIp4(char *str, uint8_t *len);
  325. void GetManagerIp5(char *str, uint8_t *len);
  326. #ifdef RADIUS_SERVER_ENABLE
  327. // ************************************************************************** //
  328. // Параметры RADIUS
  329. /**
  330. * @brief Текущий IP адрес
  331. */
  332. void GetRDSIpStr(char *str, uint8_t *len);
  333. /**
  334. * @brief Текущий Порт
  335. */
  336. void GetRDSPortStr(char *str, uint8_t *len);
  337. /**
  338. * @brief Текущий Код access
  339. */
  340. void GetRDSKeyAccesstStr(char *str, uint8_t *len);
  341. /**
  342. * @brief Текущая пароль RADIUS
  343. */
  344. void GetRDSPasswordkStr(char *str, uint8_t *len);
  345. /**
  346. * @brief Настройка вкл/ выкл RADIUS сервера
  347. */
  348. void GetRDSEnableStateStr(char *str, uint8_t *len);
  349. /**
  350. * @brief Настройка вкл/ выкл авторизации
  351. */
  352. void GetAuthEnableStateStr(char *str, uint8_t *len);
  353. #endif
  354. #ifdef INOUTS_ENABLE
  355. // ************************************************************************** //
  356. // Параметры реле/сухих контактов
  357. /**
  358. * @brief Тип действий при срабатывание сухих контактов
  359. */
  360. void GetDINTypeActStr(char *str, uint8_t *len, uint8_t num);
  361. /**
  362. * @brief Тип действий при срабатывание сухих контактов
  363. */
  364. void GetDIN1TypeActStr(char *str, uint8_t *len);
  365. /**
  366. * @brief Состояние сухого контакта
  367. */
  368. void GetDINStatusStr(char *str, uint8_t *len, uint8_t num);
  369. /**
  370. * @brief Состояние сухого контакта
  371. */
  372. void GetDIN0StatusStr(char *str, uint8_t *len);
  373. /**
  374. * @brief Состояние сухого контакта
  375. */
  376. void GetDIN0StatusStrRU(char *str, uint8_t *len);
  377. /**
  378. * @brief Источник срабатывания реле
  379. */
  380. void GetROTypeActStr(char *str, uint8_t *len, uint8_t num);
  381. /**
  382. * @brief Источник срабатывания реле
  383. */
  384. void GetRO0TypeActStr(char *str, uint8_t *len);
  385. /**
  386. * @brief Источник срабатывания реле
  387. */
  388. void GetRO1TypeActStr(char *str, uint8_t *len);
  389. #ifdef HARDWARE_BT6707
  390. /**
  391. * @brief Источник срабатывания реле
  392. */
  393. void GetRO2TypeActStr(char *str, uint8_t *len);
  394. #endif
  395. /**
  396. * @brief Состояние релейного выхода
  397. */
  398. void GetDOUTStatusStr(char *str, uint8_t *len, uint8_t num);
  399. /**
  400. * @brief Состояние релейного выхода
  401. */
  402. void GetDOUTStatusStrRU(char *str, uint8_t *len, uint8_t num);
  403. /**
  404. * @brief Состояние релейного выхода
  405. */
  406. void GetDOUT0StatusStr(char *str, uint8_t *len);
  407. /**
  408. * @brief Состояние релейного выхода
  409. */
  410. void GetDOUT1StatusStr(char *str, uint8_t *len);
  411. #if defined HARDWARE_BT6707
  412. /**
  413. * @brief Состояние релейного выхода
  414. */
  415. void GetDOUT2StatusStr(char *str, uint8_t *len);
  416. #endif
  417. #endif
  418. #ifdef TELNET_ENABLE
  419. // ************************************************************************** //
  420. // Параметры Telnet
  421. /**
  422. * @brief Текущий Порт
  423. */
  424. void GetTelnetPortStr(char *str, uint8_t *len);
  425. /**
  426. * @brief Настройка вкл/ выкл Telnet сервера
  427. */
  428. void GetTelnetEnableStateStr(char *str, uint8_t *len);
  429. // ************************************************************************** //
  430. // Параметры SSH
  431. /**
  432. * @brief Текущий Порт
  433. */
  434. void GetSSHPortStr(char *str, uint8_t *len);
  435. /**
  436. * @brief Настройка вкл/ выкл SSH сервера
  437. */
  438. void GetSSHEnableStateStr(char *str, uint8_t *len);
  439. #endif
  440. // ************************************************************************** //
  441. // Флаги
  442. /**
  443. * @brief Установить признак изменения сетевых параметров
  444. */
  445. void GetWebReinitFlag(char *str, uint8_t *len);
  446. // ************************************************************************** //
  447. // Параметры настройки ИБП
  448. /**
  449. * @brief Минимальное напряжение на ячейках АКБ
  450. */
  451. void GetUPSVoltCellMinStr(char *str, uint8_t *len);
  452. /**
  453. * @brief Минимальное напряжение на ячейках АКБ
  454. */
  455. void GetUPSVoltCellMinInt(float *value);
  456. /**
  457. * @brief Максимальное напряжение на ячейках АКБ
  458. */
  459. void GetUPSVoltCellMaxStr(char *str, uint8_t *len);
  460. /**
  461. * @brief Максимальное напряжение на ячейках АКБ
  462. */
  463. void GetUPSVoltCellMaxInt(float *value);
  464. /**
  465. * @brief Дата замены АКБ
  466. */
  467. void GetDataNextChangeAKBStrRU(char *str, uint8_t *len);
  468. /**
  469. * @brief Дата замены АКБ
  470. */
  471. void GetDataNextChangeAKBStr(char *str, uint8_t *len);
  472. /**
  473. * @brief Дата установки АКБ
  474. */
  475. void GetDataSetAKBStr(char *str, uint8_t *len);
  476. /**
  477. * @brief Срок службы АКБ
  478. */
  479. void GetLifeTimeAKBStr(char *str, uint8_t *len);
  480. /**
  481. * @brief Номинальное напряжение АКБ
  482. */
  483. void GetVoltageAKBNominalStr(char *str, uint8_t *len);
  484. /**
  485. * @brief Полная мощность АКБ
  486. */
  487. void GetUPSPowerStr(char *str, uint8_t *len);
  488. /**
  489. * @brief Емкость АКБ
  490. */
  491. void GetCapacityNominalAKBStr(char *str, uint8_t *len);
  492. /**
  493. * @brief Емкость АКБ
  494. */
  495. void GetCapacityNominalAKBInt(int32_t *value);
  496. // ************************************************************************** //
  497. // Параметры менеджера аварийных событий
  498. /**
  499. * @brief Верхняя граница VAC
  500. */
  501. void GetVACAlarmHighRangeStr(char *str, uint8_t *len);
  502. /**
  503. * @brief Верхняя граница VAC
  504. */
  505. void GetVACAlarmHighRangeInt(int32_t *value);
  506. /**
  507. * @brief Нижняя граница VAC
  508. */
  509. void GetVACAlarmLowRangeStr(char *str, uint8_t *len);
  510. /**
  511. * @brief Нижняя граница VAC
  512. */
  513. void GetVACAlarmLowRangeInt(int32_t *value);
  514. /**
  515. * @brief Гистерезис (VAC)
  516. */
  517. void GetVACAlarmHisteStr(char *str, uint8_t *len);
  518. /**
  519. * @brief Гистерезис (VAC)
  520. */
  521. void GetVACAlarmHisteInt(float *value);
  522. /**
  523. * @brief Верхняя граница температуры
  524. */
  525. void GetTemperatureAlarmHighRangeStr(char *str, uint8_t *len);
  526. /**
  527. * @brief Верхняя граница температуры
  528. */
  529. void GetTemperatureAlarmHighRangeInt(int32_t *value);
  530. /**
  531. * @brief Нижняя граница температуры
  532. */
  533. void GetTemperatureAlarmLowRangeStr(char *str, uint8_t *len);
  534. /**
  535. * @brief Нижняя граница температуры
  536. */
  537. void GetTemperatureAlarmLowRangeInt(int32_t *value);
  538. /**
  539. * @brief Гистерезис (температура)
  540. */
  541. void GetTemperatureAlarmHisteStr(char *str, uint8_t *len);
  542. /**
  543. * @brief Гистерезис (температура)
  544. */
  545. void GetTemperatureAlarmHisteInt(float *value);
  546. /**
  547. * @brief Верхняя граница нагрузки
  548. */
  549. void GetLoadAlarmHighRangeStr(char *str, uint8_t *len);
  550. /**
  551. * @brief Верхняя граница нагрузки
  552. */
  553. void GetLoadAlarmHighRangeInt(int32_t *value);
  554. /**
  555. * @brief Гистерезис (нагрузки)
  556. */
  557. void GetLoadAlarmHisteStr(char *str, uint8_t *len);
  558. /**
  559. * @brief Гистерезис (нагрузки)
  560. */
  561. void GetLoadAlarmHisteInt(float *value);
  562. // ************************************************************************** //
  563. // Установка параметрв
  564. // ************************************************************************** //
  565. /**
  566. * @brief Установить признак обновления ПО.
  567. */
  568. void SetLoadMode(void);
  569. /**
  570. * @brief Установить признак изменения сетевых параметров
  571. */
  572. void SetWebReinitFlag(bool value);
  573. /**
  574. * @brief Установить флаг подтверждения сетевых настроек пользователем
  575. */
  576. void SetConfirmWebParamsFlag(void);
  577. #ifdef NOTIFICATION_CONTROL_ENABLE
  578. // ************************************************************************** //
  579. // Параметры уведомления
  580. /**
  581. * @brief Параметр разрешения отправки
  582. */
  583. void SetNotificationFlagsStr(uint8_t *value, uint8_t num);
  584. #endif
  585. // ************************************************************************** //
  586. // Сетевые параметры
  587. /**
  588. * @brief IP адрес
  589. */
  590. void SetIPStr(char *str);
  591. /**
  592. * @brief Шлюз
  593. */
  594. void SetGatewayStr(char *str);
  595. /**
  596. * @brief Текущая маска подсети
  597. */
  598. void SetMaskStr(char *str);
  599. /**
  600. * @brief Настройка DHCP
  601. */
  602. void SetDhcpStateStr(char *str);
  603. /**
  604. * @brief Настройка DHCP
  605. */
  606. void SetUDPDhcpStateStr(char *str);
  607. #ifdef WHITELIST_ENABLE
  608. // ************************************************************************** //
  609. // Параметры довверительных хостов
  610. /**
  611. * @brief диапазон доверительных хостов
  612. */
  613. void SetWhiteListSTR(char *str, uint8_t num);
  614. /**
  615. * @brief Первый диапазон доверительных хостов
  616. */
  617. void SetWhiteList1STR(char *str);
  618. /**
  619. * @brief Второй диапазон доверительных хостов
  620. */
  621. void SetWhiteList2STR(char *str);
  622. /**
  623. * @brief Третий диапазон доверительных хостов
  624. */
  625. void SetWhiteList3STR(char *str);
  626. /**
  627. * @brief Четвертый диапазон доверительных хостов
  628. */
  629. void SetWhiteList4STR(char *str);
  630. /**
  631. * @brief Пятый диапазон доверительных хостов
  632. */
  633. void SetWhiteList5STR(char *str);
  634. #endif
  635. #ifdef PORTGW_ENABLE
  636. // ************************************************************************** //
  637. // Параметры прозрачного порта
  638. /**
  639. * @brief Включен/Выключен
  640. */
  641. void SetPortGwEnabledStr(char *str);
  642. /**
  643. * @brief IP-адрес
  644. */
  645. void SetPortGwIpStr(char *str);
  646. /**
  647. * @brief Сетевой порт
  648. */
  649. void SetPortGwPortnumStr(char *str);
  650. /**
  651. * @brief Скорость передачи данных
  652. */
  653. void SetPortGwBaudStr(char *str);
  654. /**
  655. * @brief Четность
  656. */
  657. void SetPortGwParityStr(char *str);
  658. /**
  659. * @brief Число бит данных
  660. */
  661. void SetPortGwDatabitsStr(char *str);
  662. /**
  663. * @brief Число стоп-бит
  664. */
  665. void SetPortGwStopbitsStr(char *str);
  666. #endif
  667. // ************************************************************************** //
  668. // Параметры SNMP
  669. /**
  670. * @brief TRAP community
  671. */
  672. void SetTrapCommunity(char *str);
  673. /**
  674. * @brief Community для чтения
  675. */
  676. void SetReadCommunity(char *str);
  677. /**
  678. * @brief Community для записи
  679. */
  680. void SetWriteCommunity(char *str);
  681. /**
  682. * @brief IP SNMP менеджера
  683. */
  684. void SetManagerIp(char *str);
  685. void SetManagerIp2(char *str);
  686. void SetManagerIp3(char *str);
  687. void SetManagerIp4(char *str);
  688. void SetManagerIp5(char *str);
  689. /**
  690. * @brief Название устройсва устройства
  691. */
  692. void SetNameDeviceStr(char *str);
  693. /**
  694. * @brief Установить владельца
  695. */
  696. void SetOwner(char *str);
  697. /**
  698. * @brief Установить местоположение
  699. */
  700. void SetLocation(char *str);
  701. /**
  702. * @brief Установить комментарий
  703. */
  704. void SetComment(char *str);
  705. #ifdef RADIUS_SERVER_ENABLE
  706. // ************************************************************************** //
  707. // Сетевые параметры RADIUS сервера
  708. /**
  709. * @brief IP адрес
  710. */
  711. void SetRDSIpStr(char *str);
  712. /**
  713. * @brief Порт
  714. */
  715. void SetRDSPortStr(char *str);
  716. /**
  717. * @brief Код access
  718. */
  719. void SetRDSKeyAccesstStr(char *str);
  720. /**
  721. * @brief пароль RADIUS
  722. */
  723. void SetRDSPasswordkStr(char *str);
  724. /**
  725. * @brief Настройка вкл/ выкл RADIUS сервера
  726. */
  727. void SetRDSEnableStateStr(char *str);
  728. /**
  729. * @brief Настройка вкл/ выкл авторизации
  730. */
  731. void SetAuthEnableStateStr(char *str);
  732. #endif
  733. #ifdef TELNET_ENABLE
  734. // ************************************************************************** //
  735. // Параметры Telnet
  736. /**
  737. * @brief Текущий Порт
  738. */
  739. void SetTelnetPortStr(char *str);
  740. /**
  741. * @brief Настройка вкл/ выкл Telnet сервера
  742. */
  743. void SetTelnetEnableStateStr(char *str);
  744. // ************************************************************************** //
  745. // Параметры SSH
  746. /**
  747. * @brief Текущий Порт
  748. */
  749. void SetSSHPortStr(char *str);
  750. /**
  751. * @brief Настройка вкл/ выкл SSH сервера
  752. */
  753. void SetSSHEnableStateStr(char *str);
  754. #endif
  755. // ************************************************************************** //
  756. // Параметры даты и времени
  757. /**
  758. * @brief Дата
  759. */
  760. void SetDateStr(char *str);
  761. /**
  762. * @brief Время
  763. */
  764. void SetTimeStr(char *str);
  765. /**
  766. * @brief Время
  767. */
  768. void SetTimeWebStr(char *str);
  769. // ************************************************************************** //
  770. // Параметры SNTP
  771. /**
  772. * @brief Состояние SNTP
  773. */
  774. void SetSntpStateStr(char *str);
  775. /**
  776. * @brief IP адрес SNTP сервера
  777. */
  778. void SetSntpServerIpStr(char *str);
  779. /**
  780. * @brief Часовой пояс контроллера
  781. */
  782. void SetSntpTimeZoneStr(char *str);
  783. #ifdef INOUTS_ENABLE
  784. // ************************************************************************** //
  785. // Параметры реле/сухих контактов
  786. /**
  787. * @brief Тип действий при срабатывание сухих контактов
  788. */
  789. void SetDINTypeActStr(char *str, uint8_t num);
  790. /**
  791. * @brief Тип действий при срабатывание сухих контактов
  792. */
  793. void SetDIN1TypeActStr(char *str);
  794. /**
  795. * @brief Источник срабатывания реле
  796. */
  797. void SetROTypeActStr(char *str, uint8_t num);
  798. /**
  799. * @brief Источник срабатывания реле 1
  800. */
  801. void SetRO1TypeActStr(char *str);
  802. /**
  803. * @brief Источник срабатывания реле 2
  804. */
  805. void SetRO2TypeActStr(char *str);
  806. #ifdef HARDWARE_BT6707
  807. /**
  808. * @brief Источник срабатывания реле 3
  809. */
  810. void SetRO3TypeActStr(char *str);
  811. #endif
  812. /**
  813. * @brief
  814. */
  815. void SetROStr(char *str, uint8_t num);
  816. /**
  817. * @brief
  818. */
  819. void SetROInt(uint8_t val, uint8_t num);
  820. #endif
  821. // ************************************************************************** //
  822. // Параметры настройки ИБП
  823. /**
  824. * @brief Минимальное напряжение на ячейках АКБ
  825. */
  826. void SetUPSVoltCellMinStr(char *str);
  827. /**
  828. * @brief Минимальное напряжение на ячейках АКБ
  829. */
  830. void SetUPSVoltCellMinInt(float value);
  831. /**
  832. * @brief Максимальное напряжение на ячейках АКБ
  833. */
  834. void SetUPSVoltCellMaxStr(char *str);
  835. /**
  836. * @brief Максимальное напряжение на ячейках АКБ
  837. */
  838. void SetUPSVoltCellMaxInt(float value);
  839. /**
  840. * @brief Дата установки АКБ
  841. */
  842. void SetDataSetAKBStr(char *str);
  843. /**
  844. * @brief Срок службы АКБ
  845. */
  846. void SetLifeTimeAKBStr(char *str);
  847. /**
  848. * @brief Номинальное напряжение АКБ
  849. */
  850. void SetVoltageAKBNominalStr(char *str);
  851. /**
  852. * @brief Полная мощность АКБ
  853. */
  854. void SetUPSPowerStr(char *str);
  855. /**
  856. * @brief Емкость АКБ
  857. */
  858. void SetCapacityNominalAKBStr(char *str);
  859. // ************************************************************************** //
  860. // Параметры менеджера аварий
  861. /**
  862. * @brief Верхняя граница VAC
  863. */
  864. void SetVACAlarmHighRangeStr(char *str);
  865. /**
  866. * @brief Верхняя граница VAC
  867. */
  868. void SetVACAlarmHighRangeInt(float value);
  869. /**
  870. * @brief Нижняя граница VAC
  871. */
  872. void SetVACAlarmLowRangeStr(char *str);
  873. /**
  874. * @brief Нижняя граница VAC
  875. */
  876. void SetVACAlarmLowRangeInt(float value);
  877. /**
  878. * @brief Гистерезис (VAC)
  879. */
  880. void SetVACAlarmHisteStr(char *str);
  881. /**
  882. * @brief Гистерезис (VAC)
  883. */
  884. void SetVACAlarmHisteInt(float value);
  885. /**
  886. * @brief Верхняя граница температуры
  887. */
  888. void SetTemperatureAlarmHighRangeStr(char *str);
  889. /**
  890. * @brief Верхняя граница температуры
  891. */
  892. void SetTemperatureAlarmHighRangeInt(float value);
  893. /**
  894. * @brief Нижняя граница температуры
  895. */
  896. void SetTemperatureAlarmLowRangeStr(char *str);
  897. /**
  898. * @brief Нижняя граница температуры
  899. */
  900. void SetTemperatureAlarmLowRangeInt(float value);
  901. /**
  902. * @brief Гистерезис (температура)
  903. */
  904. void SetTemperatureAlarmHisteStr(char *str);
  905. /**
  906. * @brief Гистерезис (температура)
  907. */
  908. void SetTemperatureAlarmHisteInt(float value);
  909. /**
  910. * @brief Верхняя граница нагрузки
  911. */
  912. void SetLoadAlarmHighRangeStr(char *str);
  913. /**
  914. * @brief Верхняя граница нагрузки
  915. */
  916. void SetLoadAlarmHighRangeInt(float value);
  917. /**
  918. * @brief Гистерезис (нагрузки)
  919. */
  920. void SetLoadAlarmHistStr(char *str);
  921. /**
  922. * @brief Гистерезис (нагрузки)
  923. */
  924. void SetLoadAlarmHistInt(float value);
  925. void SetEmptyFuncStr(char *str);
  926. #endif /* #ifndef PARAMETERS_H */
  927. /********************************* (C) РОТЕК **********************************/