parameters.h 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435
  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. * @brief
  19. */
  20. bool GetRebootStatus(void);
  21. // ************************************************************************** //
  22. // Параметры UPS
  23. void GetInputFreqStr(char *str, uint8_t *len);
  24. void GetInputFreqInt(float *value);
  25. void GetOutputFreqStr(char *str, uint8_t *len);
  26. void GetInputVoltageStr(char *str, uint8_t *len);
  27. void GetInputVoltageInt(float *value);
  28. void GetOutputVoltageStr(char *str, uint8_t *len);
  29. void GetOutputVoltageInt(float *value);
  30. void GetPowerStr(char *str, uint8_t *len);
  31. void GetPowerInt(int32_t *value);
  32. void GetBatCapacityStr(char *str, uint8_t *len);
  33. void GetBatCapacityInt(int32_t *value);
  34. void GetRuntimeStr(char *str, uint8_t *len);
  35. void GetRuntimeInt(int32_t *value);
  36. void GetAKBWorktimeStr(char *str, uint8_t *len);
  37. void GetAKBWorktimeInt(int32_t *value);
  38. void GetInternalTempStr(char *str, uint8_t *len);
  39. void GetInternalTempInt(float *value);
  40. /**
  41. * @brief
  42. */
  43. void GetAlarmMonitorStr(char *str, uint8_t *len);
  44. void GetConnectMonitorStr(char *str, uint8_t *len);
  45. void GetModeStr(char *str, uint8_t *len);
  46. /**
  47. * @brief
  48. */
  49. void GetInputCurrentStr(char *str, uint8_t *len);
  50. /**
  51. * @brief
  52. */
  53. void GetInputCurrentInt(float *value);
  54. /**
  55. * @brief
  56. */
  57. void GetOutputCurrentStr(char *str, uint8_t *len);
  58. /**
  59. * @brief
  60. */
  61. void GetOutputCurrentInt(float *value);
  62. /**
  63. * @brief
  64. */
  65. void GetVoltageAKBtStr(char *str, uint8_t *len);
  66. /**
  67. * @brief
  68. */
  69. void GetVoltageAKBInt(float *value);
  70. /**
  71. * @brief Режим работы
  72. */
  73. void GetModeStr(char *str, uint8_t *len);
  74. /**
  75. * @brief Режим работы
  76. */
  77. void GetModeEn(char *str, uint8_t *len);
  78. /**
  79. * @brief Индикация аварийных ситуаций
  80. * TODO добавить реальный параметр
  81. */
  82. void GetAlarmStr(char *str, uint8_t *len);
  83. /**
  84. * @brief Индикация аварийных ситуаций
  85. */
  86. void GetUPSAlarmStr(char *str, uint8_t *len);
  87. /**
  88. * @brief Индикация аварийных ситуаций
  89. */
  90. void GetAKBAlarmStr(char *str, uint8_t *len);
  91. /**
  92. * @brief Индикация аварийных ситуаций
  93. */
  94. void GetConnectUPSAlarmStr(char *str, uint8_t *len);
  95. /**
  96. * @brief Индикация аварийных ситуаций
  97. */
  98. void GetUPSModeStr(char *str, uint8_t *len);
  99. /**
  100. * @brief Текущее время ч/м/с
  101. */
  102. void GetCurrentTimeStr(char *str, uint8_t *len);
  103. // ************************************************************************** //
  104. // Параметры даты и времени
  105. /**
  106. * @brief Дата (Ready for PRS!)
  107. */
  108. void GetDateStr(char *str, uint8_t *len);
  109. /**
  110. * @brief Время (Ready for PRS!)
  111. */
  112. void GetTimeStr(char *str, uint8_t *len);
  113. /**
  114. * @brief Время (Ready for PRS!)
  115. */
  116. void GetUnixTimeStr(char *str, uint8_t *len);
  117. // ************************************************************************** //
  118. // Параметры SNTP
  119. /**
  120. * @brief Состояние SNTP (Ready for PRS!)
  121. */
  122. void GetSntpStateStr(char *str, uint8_t *len);
  123. /**
  124. * @brief Состояние SNTP (Ready for PRS!)
  125. */
  126. void GetSntpStateStrRU(char *str, uint8_t *len);
  127. /**
  128. * @brief IP адрес SNTP сервера (Ready for PRS!)
  129. */
  130. void GetSntpServerIpStr(char *str, uint8_t *len);
  131. /**
  132. * @brief Часовой пояс контроллера (Ready for PRS!)
  133. */
  134. void GetSntpTimeZoneStr(char *str, uint8_t *len);
  135. /**
  136. * @brief Дата последней синхронизации SNTP (Ready for PRS!)
  137. */
  138. void GetSntpLastDataStr(char *str, uint8_t *len);
  139. // ************************************************************************** //
  140. // Информация
  141. // ************************************************************************** //
  142. // Настройки аутентификации
  143. void GetUserLogin(uint8_t user_id, char *str, uint8_t *len);
  144. void GetUserPassword(uint8_t user_id, char *str, uint8_t *len);
  145. void GetUserLevel(uint8_t user_id, char *str, uint8_t *len);
  146. void GetUserLevelInt(uint8_t user_id, uint8_t *value);
  147. /**
  148. * @brief Время работы устройства
  149. */
  150. void GetWorkTimeStr(char *str, uint8_t *len);
  151. /**
  152. * @brief Модель устройства
  153. */
  154. void GetModelStr(char *str, uint8_t *len);
  155. /**
  156. * @brief Название устройсва устройства
  157. */
  158. void GetNameDeviceStr(char *str, uint8_t *len);
  159. /**
  160. * @brief Дата производства
  161. */
  162. void GetProductionDataStr(char *str, uint8_t *len);
  163. /**
  164. * @brief Версия ПО
  165. */
  166. void GetVersionStr(char *str, uint8_t *len);
  167. /**
  168. * @brief MAC адрес устройства
  169. */
  170. void GetMacStr(char *str, uint8_t *len);
  171. /**
  172. * @brief Серийный номер устройства
  173. */
  174. void GetSerialNumberStr(char *str, uint8_t *len);
  175. /**
  176. * @brief Владелец устройства
  177. */
  178. void GetOwnerStr(char *str, uint8_t *len);
  179. /**
  180. * @brief Местоположение устройства
  181. */
  182. void GetLocationStr(char *str, uint8_t *len);
  183. /**
  184. * @brief Комментарии
  185. */
  186. void GetCommentsStr(char *str, uint8_t *len);
  187. /**
  188. * @brief Серийный номер UPS
  189. */
  190. void GetUPSSerialStr(char *str, uint8_t *len);
  191. /**
  192. * @brief Модель UPS
  193. */
  194. void GetUPSModelStr(char *str, uint8_t *len);
  195. /**
  196. * @brief Версия UPS ПО
  197. */
  198. void GetUPSVersionStr(char *str, uint8_t *len);
  199. #ifdef NOTIFICATION_CONTROL_ENABLE
  200. // ************************************************************************** //
  201. // Параметры уведомления
  202. /**
  203. * @brief Параметр разрешения отправки трапа
  204. */
  205. void GetNotificationTrapsStateStr(char *str, uint8_t *len, uint8_t num);
  206. /**
  207. * @brief Параметр разрешения отправки трапа
  208. */
  209. void GetNotificationTrapsStateStr2(char *str, uint8_t *len, uint8_t num);
  210. /**
  211. * @brief Длинное имя трапа
  212. */
  213. void GetTrapLongNameStr(char *str, uint8_t *len, uint8_t num);
  214. #endif
  215. // ************************************************************************** //
  216. // Параметры WEB
  217. /**
  218. * @brief Текущий IP адрес
  219. */
  220. void GetIpStr(char *str, uint8_t *len);
  221. /**
  222. * @brief Текущий шлюз
  223. */
  224. void GetGatewayStr(char *str, uint8_t *len);
  225. /**
  226. * @brief Текущая маска подсети
  227. */
  228. void GetMaskStr(char *str, uint8_t *len);
  229. /**
  230. * @brief Настройка DHCP
  231. */
  232. void GetDhcpStateStr(char *str, uint8_t *len);
  233. /**
  234. * @brief Настройка DHCP
  235. */
  236. void GetDhcpStateUDP(char *str, uint8_t *len);
  237. /**
  238. * @brief Настройка DHCP
  239. */
  240. void GetDhcpStateStrRu(char *str, uint8_t *len);
  241. #ifdef WHITELIST_ENABLE
  242. // ************************************************************************** //
  243. // Параметры довверительных хостов
  244. /**
  245. * @brief диапазон доверительных хостов
  246. */
  247. void GetWhiteListSTR(char *str, uint8_t *len, uint8_t num);
  248. /**
  249. * @brief первый диапазон доверительных хостов
  250. */
  251. void GetWhiteList1STR(char *str, uint8_t *len);
  252. /**
  253. * @brief второй диапазон доверительных хостов
  254. */
  255. void GetWhiteList2STR(char *str, uint8_t *len);
  256. /**
  257. * @brief третий диапазон доверительных хостов
  258. */
  259. void GetWhiteList3STR(char *str, uint8_t *len);
  260. /**
  261. * @brief четвертый диапазон доверительных хостов
  262. */
  263. void GetWhiteList4STR(char *str, uint8_t *len);
  264. /**
  265. * @brief пятый диапазон доверительных хостов
  266. */
  267. void GetWhiteList5STR(char *str, uint8_t *len);
  268. /**
  269. * @brief маска диапазона доверительных хостов
  270. */
  271. void GetWhiteListMask(uint32_t *value, uint8_t num);
  272. /**
  273. * @brief ip диапазона доверительных хостов
  274. */
  275. void GetWhiteListIP(uint32_t *value, uint8_t num);
  276. #endif
  277. #ifdef PORTGW_ENABLE
  278. // ************************************************************************** //
  279. // Параметры прозрачного порта
  280. /**
  281. * @brief Включен/Выключен
  282. */
  283. void GetPortGwEnabledStr(char *str, uint8_t *len);
  284. /**
  285. * @brief IP-адрес
  286. */
  287. void GetPortGwIpStr(char *str, uint8_t *len);
  288. /**
  289. * @brief Сетевой порт
  290. */
  291. void GetPortGwPortnumStr(char *str, uint8_t *len);
  292. /**
  293. * @brief Скорость передачи данных
  294. */
  295. void GetPortGwBaudStr(char *str, uint8_t *len);
  296. /**
  297. * @brief Четность
  298. */
  299. void GetPortGwParityStr(char *str, uint8_t *len);
  300. /**
  301. * @brief Число бит данных
  302. */
  303. void GetPortGwDatabitsStr(char *str, uint8_t *len);
  304. /**
  305. * @brief Число стоп-бит
  306. */
  307. void GetPortGwStopbitsStr(char *str, uint8_t *len);
  308. #endif
  309. #ifdef DALLAS_SENSOR_ENABLE
  310. // ************************************************************************** //
  311. // Параметры датчика температуры
  312. /**
  313. * @brief Размещение датчика температуры 1
  314. */
  315. void GetTS1locationStr(char *str, uint8_t *len);
  316. /**
  317. * @brief Размещение датчика температуры 2
  318. */
  319. void GetTS2locationStr(char *str, uint8_t *len);
  320. #endif
  321. // ************************************************************************** //
  322. // Параметры SNMP
  323. /**
  324. * @brief Текущее TRAP community
  325. */
  326. void GetTrapCommunity(char *str, uint8_t *len);
  327. /**
  328. * @brief Текущее community для чтения
  329. */
  330. void GetReadCommunity(char *str, uint8_t *len);
  331. /**
  332. * @brief Текущее community для записи
  333. */
  334. void GetWriteCommunity(char *str, uint8_t *len);
  335. /**
  336. * @brief IP SNMP менеджера
  337. */
  338. void GetManagerIp(char *str, uint8_t *len);
  339. void GetManagerIp2(char *str, uint8_t *len);
  340. void GetManagerIp3(char *str, uint8_t *len);
  341. void GetManagerIp4(char *str, uint8_t *len);
  342. void GetManagerIp5(char *str, uint8_t *len);
  343. #ifdef RADIUS_SERVER_ENABLE
  344. // ************************************************************************** //
  345. // Параметры RADIUS
  346. /**
  347. * @brief Текущий IP адрес
  348. */
  349. void GetRDSIpStr(char *str, uint8_t *len);
  350. /**
  351. * @brief Текущий Порт
  352. */
  353. void GetRDSPortStr(char *str, uint8_t *len);
  354. /**
  355. * @brief Текущий Код access
  356. */
  357. void GetRDSKeyAccesstStr(char *str, uint8_t *len);
  358. /**
  359. * @brief Текущая пароль RADIUS
  360. */
  361. void GetRDSPasswordkStr(char *str, uint8_t *len);
  362. /**
  363. * @brief Настройка вкл/ выкл RADIUS сервера
  364. */
  365. void GetRDSEnableStateStr(char *str, uint8_t *len);
  366. void GetRADIUSEnableStrRU(char *str, uint8_t *len);
  367. /**
  368. * @brief Настройка вкл/ выкл авторизации
  369. */
  370. void GetAuthEnableStateStr(char *str, uint8_t *len);
  371. #endif
  372. #ifndef BT6702_SERVICE
  373. // ************************************************************************** //
  374. // Температура с внешних датчиков
  375. #ifdef DALLAS_SENSOR_ENABLE
  376. /**
  377. * @brief
  378. */
  379. void GetTempCaseStr(char *str, uint8_t *len);
  380. /**
  381. * @brief
  382. */
  383. void GetTempCaseInt(float *value);
  384. #endif
  385. #endif
  386. // ************************************************************************** //
  387. // Параметры реле/сухих контактов
  388. #ifdef DINS_ENABLE
  389. /**
  390. * @brief Тип действий при срабатывание сухих контактов
  391. */
  392. void GetDINTypeActStr(char *str, uint8_t *len, uint8_t num);
  393. /**
  394. * @brief Тип действий при срабатывание сухих контактов
  395. */
  396. void GetDIN0TypeActStr(char *str, uint8_t *len);
  397. /**
  398. * @brief Тип действий при срабатывание сухих контактов
  399. */
  400. void GetDIN1TypeActStr(char *str, uint8_t *len);
  401. /**
  402. * @brief Имя сухого контакта
  403. */
  404. void GetDINNameStr(char *str, uint8_t *len, uint8_t num);
  405. /**
  406. * @brief Имя сухого контакта
  407. */
  408. void GetDIN0NameStr(char *str, uint8_t *len);
  409. /**
  410. * @brief Имя сухого контакта
  411. */
  412. void GetDIN1NameStr(char *str, uint8_t *len);
  413. /**
  414. * @brief Состояние сухого контакта
  415. */
  416. void GetDINStatusStr(char *str, uint8_t *len, uint8_t num);
  417. /**
  418. * @brief Состояние сухого контакта
  419. */
  420. void GetDIN0StatusStr(char *str, uint8_t *len);
  421. /**
  422. * @brief Состояние сухого контакта
  423. */
  424. void GetDIN1StatusStr(char *str, uint8_t *len);
  425. /**
  426. * @brief Состояние сухого контакта
  427. */
  428. void GetDIN0StatusStrRU(char *str, uint8_t *len);
  429. #endif
  430. #ifdef DOUTS_ENABLE
  431. /**
  432. * @brief Источник срабатывания реле
  433. */
  434. void GetROTypeActStr(char *str, uint8_t *len, uint8_t num);
  435. /**
  436. * @brief Источник срабатывания реле
  437. */
  438. void GetRO0TypeActStr(char *str, uint8_t *len);
  439. /**
  440. * @brief Источник срабатывания реле
  441. */
  442. void GetRO1TypeActStr(char *str, uint8_t *len);
  443. /**
  444. * @brief Источник срабатывания реле
  445. */
  446. void GetRO2TypeActStr(char *str, uint8_t *len);
  447. /**
  448. * @brief Состояние релейного выхода
  449. */
  450. void GetDOUTStatusStr(char *str, uint8_t *len, uint8_t num);
  451. /**
  452. * @brief Состояние релейного выхода
  453. */
  454. void GetDOUTStatusStrRU(char *str, uint8_t *len, uint8_t num);
  455. /**
  456. * @brief Состояние релейного выхода
  457. */
  458. void GetDOUT0StatusStr(char *str, uint8_t *len);
  459. /**
  460. * @brief Состояние релейного выхода
  461. */
  462. void GetDOUT1StatusStr(char *str, uint8_t *len);
  463. /**
  464. * @brief Состояние релейного выхода
  465. */
  466. void GetDOUT2StatusStr(char *str, uint8_t *len);
  467. #endif
  468. #ifdef TELNET_ENABLE
  469. // ************************************************************************** //
  470. // Параметры Telnet
  471. /**
  472. * @brief Текущий Порт
  473. */
  474. void GetTelnetPortStr(char *str, uint8_t *len);
  475. /**
  476. * @brief Настройка вкл/ выкл Telnet сервера
  477. */
  478. void GetTelnetEnableStateStr(char *str, uint8_t *len);
  479. // ************************************************************************** //
  480. // Параметры SSH
  481. /**
  482. * @brief Текущий Порт
  483. */
  484. void GetSSHPortStr(char *str, uint8_t *len);
  485. /**
  486. * @brief Настройка вкл/ выкл SSH сервера
  487. */
  488. void GetSSHEnableStateStr(char *str, uint8_t *len);
  489. #endif
  490. #ifdef FTP_ENABLE
  491. // ************************************************************************** //
  492. // Параметры FTP
  493. void GetFTPServer(char *str, uint8_t *len);
  494. void GetFTPPort(char *str, uint8_t *len);
  495. void GetFTPPath(char *str, uint8_t *len);
  496. void GetFTPLogin(char *str, uint8_t *len);
  497. void GetFTPPassword(char *str, uint8_t *len);
  498. // ************************************************************************** //
  499. // Параметры Syslog
  500. void GetSyslogEnable(char *str, uint8_t *len);
  501. void GetSyslogEnableStrRU(char *str, uint8_t *len);
  502. void GetSyslogServer(char *str, uint8_t *len);
  503. void GetSyslogPort(char *str, uint8_t *len);
  504. #endif // FTP_ENABLE
  505. // ************************************************************************** //
  506. // Флаги
  507. /**
  508. * @brief Установить признак изменения сетевых параметров
  509. */
  510. void GetWebReinitFlag(char *str, uint8_t *len);
  511. // ************************************************************************** //
  512. // Параметры настройки ИБП
  513. /**
  514. * @brief Минимальное напряжение на ячейках АКБ
  515. */
  516. void GetUPSVoltCellMinStr(char *str, uint8_t *len);
  517. /**
  518. * @brief Минимальное напряжение на ячейках АКБ
  519. */
  520. void GetUPSVoltCellMinInt(float *value);
  521. /**
  522. * @brief Максимальное напряжение на ячейках АКБ
  523. */
  524. void GetUPSVoltCellMaxStr(char *str, uint8_t *len);
  525. /**
  526. * @brief Максимальное напряжение на ячейках АКБ
  527. */
  528. void GetUPSVoltCellMaxInt(float *value);
  529. /**
  530. * @brief Дата замены АКБ
  531. */
  532. void GetDataNextChangeAKBStrRU(char *str, uint8_t *len);
  533. /**
  534. * @brief Дата замены АКБ
  535. */
  536. void GetDataNextChangeAKBStr(char *str, uint8_t *len);
  537. /**
  538. * @brief Дата установки АКБ
  539. */
  540. void GetDataSetAKBStr(char *str, uint8_t *len);
  541. /**
  542. * @brief Срок службы АКБ
  543. */
  544. void GetLifeTimeAKBStr(char *str, uint8_t *len);
  545. /**
  546. * @brief Номинальное напряжение АКБ
  547. */
  548. void GetVoltageAKBNominalStr(char *str, uint8_t *len);
  549. /**
  550. * @brief Полная мощность АКБ
  551. */
  552. void GetUPSPowerStr(char *str, uint8_t *len);
  553. /**
  554. * @brief Полная мощность АКБ
  555. */
  556. void GetUPSPowerEnumStr(char *str, uint8_t *len);
  557. /**
  558. * @brief КПД ИБП
  559. */
  560. void GetUPSEfficiencyFactorInt(float *value);
  561. /**
  562. * @brief Емкость АКБ
  563. */
  564. void GetCapacityNominalAKBStr(char *str, uint8_t *len);
  565. /**
  566. * @brief Емкость АКБ
  567. */
  568. void GetCapacityNominalAKBInt(int32_t *value);
  569. // ************************************************************************** //
  570. // Параметры менеджера аварийных событий
  571. /**
  572. * @brief Верхняя граница VAC
  573. */
  574. void GetVACAlarmHighRangeStr(char *str, uint8_t *len);
  575. /**
  576. * @brief Верхняя граница VAC
  577. */
  578. void GetVACAlarmHighRangeInt(int32_t *value);
  579. /**
  580. * @brief Нижняя граница VAC
  581. */
  582. void GetVACAlarmLowRangeStr(char *str, uint8_t *len);
  583. /**
  584. * @brief Нижняя граница VAC
  585. */
  586. void GetVACAlarmLowRangeInt(int32_t *value);
  587. /**
  588. * @brief Гистерезис (VAC)
  589. */
  590. void GetVACAlarmHisteStr(char *str, uint8_t *len);
  591. /**
  592. * @brief Гистерезис (VAC)
  593. */
  594. void GetVACAlarmHisteInt(float *value);
  595. #ifdef VAC_IN_MONITOR
  596. /**
  597. * @brief Верхняя граница входящего напряжения
  598. */
  599. void GetVACInputAlarmHighRangeStr(char *str, uint8_t *len);
  600. /**
  601. * @brief Верхняя граница входящего напряжения
  602. */
  603. void GetVACInputAlarmHighRangeInt(int32_t *value);
  604. /**
  605. * @brief Нижняя граница входящего напряжения
  606. */
  607. void GetVACInputAlarmLowRangeStr(char *str, uint8_t *len);
  608. /**
  609. * @brief Нижняя граница входящего напряжения
  610. */
  611. void GetVACInputAlarmLowRangeInt(int32_t *value);
  612. /**
  613. * @brief Гистерезис входящего напряжения
  614. */
  615. void GetVACinputAlarmHisteStr(char *str, uint8_t *len);
  616. /**
  617. * @brief Гистерезис входящего напряжения
  618. */
  619. void GetVACinputAlarmHisteInt(float *value);
  620. #endif
  621. /**
  622. * @brief Верхняя граница температуры
  623. */
  624. void GetTemperatureAlarmHighRangeStr(char *str, uint8_t *len);
  625. /**
  626. * @brief Верхняя граница температуры
  627. */
  628. void GetTemperatureAlarmHighRangeInt(int32_t *value);
  629. /**
  630. * @brief Нижняя граница температуры
  631. */
  632. void GetTemperatureAlarmLowRangeStr(char *str, uint8_t *len);
  633. /**
  634. * @brief Нижняя граница температуры
  635. */
  636. void GetTemperatureAlarmLowRangeInt(int32_t *value);
  637. /**
  638. * @brief Гистерезис (температура)
  639. */
  640. void GetTemperatureAlarmHisteStr(char *str, uint8_t *len);
  641. /**
  642. * @brief Гистерезис (температура)
  643. */
  644. void GetTemperatureAlarmHisteInt(float *value);
  645. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  646. /**
  647. * @brief Верхняя граница температуры
  648. */
  649. void GetTemperatureCabinetAlarmHighRangeStr(char *str, uint8_t *len);
  650. /**
  651. * @brief Верхняя граница температуры
  652. */
  653. void GetTemperatureCabinetAlarmHighRangeInt(int32_t *value);
  654. /**
  655. * @brief Нижняя граница температуры
  656. */
  657. void GetTemperatureCabinetAlarmLowRangeStr(char *str, uint8_t *len);
  658. /**
  659. * @brief Нижняя граница температуры
  660. */
  661. void GetTemperatureCabinetAlarmLowRangeInt(int32_t *value);
  662. /**
  663. * @brief Гистерезис (температура)
  664. */
  665. void GetTemperatureCabinetAlarmHisteStr(char *str, uint8_t *len);
  666. /**
  667. * @brief Гистерезис (температура)
  668. */
  669. void GetTemperatureCabinetAlarmHisteInt(float *value);
  670. #endif
  671. /**
  672. * @brief Верхняя граница нагрузки
  673. */
  674. void GetLoadAlarmHighRangeStr(char *str, uint8_t *len);
  675. /**
  676. * @brief Верхняя граница нагрузки
  677. */
  678. void GetLoadAlarmHighRangeInt(int32_t *value);
  679. /**
  680. * @brief Гистерезис (нагрузки)
  681. */
  682. void GetLoadAlarmHisteStr(char *str, uint8_t *len);
  683. /**
  684. * @brief Гистерезис (нагрузки)
  685. */
  686. void GetLoadAlarmHisteInt(float *value);
  687. // ************************************************************************** //
  688. // Установка параметрв
  689. // ************************************************************************** //
  690. /**
  691. * @brief Установить признак обновления ПО.
  692. */
  693. void SetLoadMode(void);
  694. /**
  695. * @brief Установить признак изменения сетевых параметров
  696. */
  697. void SetWebReinitFlag(bool value);
  698. /**
  699. * @brief Установить флаг подтверждения сетевых настроек пользователем
  700. */
  701. void SetConfirmWebParamsFlag(void);
  702. #ifdef NOTIFICATION_CONTROL_ENABLE
  703. // ************************************************************************** //
  704. // Параметры уведомления
  705. /**
  706. * @brief Параметр разрешения отправки
  707. */
  708. void SetNotificationFlagsStr(uint8_t *value, uint8_t num);
  709. #endif
  710. // ************************************************************************** //
  711. // Сетевые параметры
  712. /**
  713. * @brief IP адрес
  714. */
  715. void SetIPStr(char *str);
  716. /**
  717. * @brief Шлюз
  718. */
  719. void SetGatewayStr(char *str);
  720. /**
  721. * @brief Текущая маска подсети
  722. */
  723. void SetMaskStr(char *str);
  724. /**
  725. * @brief Настройка DHCP
  726. */
  727. void SetDhcpStateStr(char *str);
  728. /**
  729. * @brief Настройка DHCP
  730. */
  731. void SetUDPDhcpStateStr(char *str);
  732. #ifdef WHITELIST_ENABLE
  733. // ************************************************************************** //
  734. // Параметры довверительных хостов
  735. /**
  736. * @brief диапазон доверительных хостов
  737. */
  738. void SetWhiteListSTR(char *str, uint8_t num);
  739. /**
  740. * @brief Первый диапазон доверительных хостов
  741. */
  742. void SetWhiteList1STR(char *str);
  743. /**
  744. * @brief Второй диапазон доверительных хостов
  745. */
  746. void SetWhiteList2STR(char *str);
  747. /**
  748. * @brief Третий диапазон доверительных хостов
  749. */
  750. void SetWhiteList3STR(char *str);
  751. /**
  752. * @brief Четвертый диапазон доверительных хостов
  753. */
  754. void SetWhiteList4STR(char *str);
  755. /**
  756. * @brief Пятый диапазон доверительных хостов
  757. */
  758. void SetWhiteList5STR(char *str);
  759. #endif
  760. #ifdef PORTGW_ENABLE
  761. // ************************************************************************** //
  762. // Параметры прозрачного порта
  763. /**
  764. * @brief Включен/Выключен
  765. */
  766. void SetPortGwEnabledStr(char *str);
  767. /**
  768. * @brief Сетевой порт
  769. */
  770. void SetPortGwPortnumStr(char *str);
  771. /**
  772. * @brief Скорость передачи данных
  773. */
  774. void SetPortGwBaudStr(char *str);
  775. /**
  776. * @brief Четность
  777. */
  778. void SetPortGwParityStr(char *str);
  779. /**
  780. * @brief Число бит данных
  781. */
  782. void SetPortGwDatabitsStr(char *str);
  783. /**
  784. * @brief Число стоп-бит
  785. */
  786. void SetPortGwStopbitsStr(char *str);
  787. #endif
  788. #ifdef DALLAS_SENSOR_ENABLE
  789. // ************************************************************************** //
  790. // Параметры датчика температуры
  791. /**
  792. * @brief Размещение датчика температуры 1
  793. */
  794. void SetTS1locationStr(char *str);
  795. /**
  796. * @brief Размещение датчика температуры 2
  797. */
  798. void SetTS2locationStr(char *str);
  799. #endif
  800. // ************************************************************************** //
  801. // Параметры SNMP
  802. /**
  803. * @brief TRAP community
  804. */
  805. void SetTrapCommunity(char *str);
  806. /**
  807. * @brief Community для чтения
  808. */
  809. void SetReadCommunity(char *str);
  810. /**
  811. * @brief Community для записи
  812. */
  813. void SetWriteCommunity(char *str);
  814. /**
  815. * @brief IP SNMP менеджера
  816. */
  817. void SetManagerIp(char *str);
  818. void SetManagerIp2(char *str);
  819. void SetManagerIp3(char *str);
  820. void SetManagerIp4(char *str);
  821. void SetManagerIp5(char *str);
  822. /**
  823. * @brief Название устройсва устройства
  824. */
  825. void SetNameDeviceStr(char *str);
  826. /**
  827. * @brief Установить владельца
  828. */
  829. void SetOwner(char *str);
  830. /**
  831. * @brief Установить местоположение
  832. */
  833. void SetLocation(char *str);
  834. /**
  835. * @brief Установить комментарий
  836. */
  837. void SetComment(char *str);
  838. #ifdef RADIUS_SERVER_ENABLE
  839. // ************************************************************************** //
  840. // Сетевые параметры RADIUS сервера
  841. /**
  842. * @brief IP адрес
  843. */
  844. void SetRDSIpStr(char *str);
  845. /**
  846. * @brief Порт
  847. */
  848. void SetRDSPortStr(char *str);
  849. /**
  850. * @brief Код access
  851. */
  852. void SetRDSKeyAccesstStr(char *str);
  853. /**
  854. * @brief пароль RADIUS
  855. */
  856. void SetRDSPasswordkStr(char *str);
  857. /**
  858. * @brief Настройка вкл/ выкл RADIUS сервера
  859. */
  860. void SetRDSEnableStateStr(char *str);
  861. /**
  862. * @brief Настройка вкл/ выкл авторизации
  863. */
  864. void SetAuthEnableStateStr(char *str);
  865. #endif
  866. #ifdef TELNET_ENABLE
  867. // ************************************************************************** //
  868. // Параметры Telnet
  869. /**
  870. * @brief Текущий Порт
  871. */
  872. void SetTelnetPortStr(char *str);
  873. /**
  874. * @brief Настройка вкл/ выкл Telnet сервера
  875. */
  876. void SetTelnetEnableStateStr(char *str);
  877. // ************************************************************************** //
  878. // Параметры SSH
  879. /**
  880. * @brief Текущий Порт
  881. */
  882. void SetSSHPortStr(char *str);
  883. /**
  884. * @brief Настройка вкл/ выкл SSH сервера
  885. */
  886. void SetSSHEnableStateStr(char *str);
  887. #endif
  888. #ifdef SYSLOG_ENABLE
  889. // ************************************************************************** //
  890. // Параметры Syslog
  891. void SetSyslogEnable(char *str);
  892. void SetSyslogServer(char *str);
  893. void SetSyslogPort(char *str);
  894. #endif // SYSLOG_ENABLE
  895. // ************************************************************************** //
  896. // Параметры даты и времени
  897. /**
  898. * @brief Дата
  899. */
  900. void SetDateStr(char *str);
  901. /**
  902. * @brief Время
  903. */
  904. void SetTimeStr(char *str);
  905. /**
  906. * @brief Время
  907. */
  908. void SetTimeWebStr(char *str);
  909. // ************************************************************************** //
  910. // Параметры SNTP
  911. /**
  912. * @brief Состояние SNTP
  913. */
  914. void SetSntpStateStr(char *str);
  915. /**
  916. * @brief IP адрес SNTP сервера
  917. */
  918. void SetSntpServerIpStr(char *str);
  919. /**
  920. * @brief Часовой пояс контроллера
  921. */
  922. void SetSntpTimeZoneStr(char *str);
  923. // ************************************************************************** //
  924. // Параметры реле/сухих контактов
  925. #ifdef DINS_ENABLE
  926. /**
  927. * @brief Тип действий при срабатывание сухих контактов
  928. */
  929. void SetDINTypeActStr(char *str, uint8_t num);
  930. /**
  931. * @brief Тип действий при срабатывание сухих контактов
  932. */
  933. void SetDIN0TypeActStr(char *str);
  934. /**
  935. * @brief Тип действий при срабатывание сухих контактов
  936. */
  937. void SetDIN1TypeActStr(char *str);
  938. /**
  939. * @brief Имя сухого контакта
  940. */
  941. void SetDINNameStr(char *str, uint8_t num);
  942. /**
  943. * @brief Имя сухого контакта
  944. */
  945. void SetDIN0NameStr(char *str);
  946. /**
  947. * @brief Имя сухого контакта
  948. */
  949. void SetDIN1NameStr(char *str);
  950. #endif
  951. #ifdef DOUTS_ENABLE
  952. /**
  953. * @brief Источник срабатывания реле
  954. */
  955. void SetROTypeActStr(char *str, uint8_t num);
  956. /**
  957. * @brief Источник срабатывания реле 1
  958. */
  959. void SetRO1TypeActStr(char *str);
  960. /**
  961. * @brief Источник срабатывания реле 2
  962. */
  963. void SetRO2TypeActStr(char *str);
  964. /**
  965. * @brief Источник срабатывания реле 3
  966. */
  967. void SetRO3TypeActStr(char *str);
  968. /**
  969. * @brief
  970. */
  971. void SetROStr(char *str, uint8_t num);
  972. /**
  973. * @brief
  974. */
  975. void SetROInt(uint8_t val, uint8_t num);
  976. #endif
  977. // ************************************************************************** //
  978. // Параметры настройки ИБП
  979. /**
  980. * @brief Минимальное напряжение на ячейках АКБ
  981. */
  982. void SetUPSVoltCellMinStr(char *str);
  983. /**
  984. * @brief Минимальное напряжение на ячейках АКБ
  985. */
  986. void SetUPSVoltCellMinInt(float value);
  987. /**
  988. * @brief Максимальное напряжение на ячейках АКБ
  989. */
  990. void SetUPSVoltCellMaxStr(char *str);
  991. /**
  992. * @brief Максимальное напряжение на ячейках АКБ
  993. */
  994. void SetUPSVoltCellMaxInt(float value);
  995. /**
  996. * @brief Дата установки АКБ
  997. */
  998. void SetDataSetAKBStr(char *str);
  999. /**
  1000. * @brief Срок службы АКБ
  1001. */
  1002. void SetLifeTimeAKBStr(char *str);
  1003. /**
  1004. * @brief Номинальное напряжение АКБ
  1005. */
  1006. void SetVoltageAKBNominalStr(char *str);
  1007. /**
  1008. * @brief Полная мощность АКБ
  1009. */
  1010. void SetUPSPowerStr(char *str);
  1011. /**
  1012. * @brief Полная мощность АКБ
  1013. */
  1014. void SetUPSPowerEnumStr(char *str);
  1015. /**
  1016. * @brief Емкость АКБ
  1017. */
  1018. void SetCapacityNominalAKBStr(char *str);
  1019. /**
  1020. * @brief Серийный номер ИБП
  1021. */
  1022. void SetUPSSerialStr(char *str);
  1023. // ************************************************************************** //
  1024. // Параметры менеджера аварий
  1025. /**
  1026. * @brief Верхняя граница VAC
  1027. */
  1028. void SetVACAlarmHighRangeStr(char *str);
  1029. /**
  1030. * @brief Верхняя граница VAC
  1031. */
  1032. void SetVACAlarmHighRangeInt(float value);
  1033. /**
  1034. * @brief Нижняя граница VAC
  1035. */
  1036. void SetVACAlarmLowRangeStr(char *str);
  1037. /**
  1038. * @brief Нижняя граница VAC
  1039. */
  1040. void SetVACAlarmLowRangeInt(float value);
  1041. /**
  1042. * @brief Гистерезис (VAC)
  1043. */
  1044. void SetVACAlarmHisteStr(char *str);
  1045. /**
  1046. * @brief Гистерезис (VAC)
  1047. */
  1048. void SetVACAlarmHisteInt(float value);
  1049. #ifdef VAC_IN_MONITOR
  1050. /**
  1051. * @brief Верхняя граница входящего напряжения
  1052. */
  1053. void SetVACInputAlarmHighRangeStr(char *str);
  1054. /**
  1055. * @brief Верхняя граница входящего напряжения
  1056. */
  1057. void SetVACInputAlarmHighRangeInt(float value);
  1058. /**
  1059. * @brief Нижняя граница входящего напряжения
  1060. */
  1061. void SetVACInputAlarmLowRangeStr(char *str);
  1062. /**
  1063. * @brief Нижняя граница входящего напряжения
  1064. */
  1065. void SetVACInputAlarmLowRangeInt(float value);
  1066. /**
  1067. * @brief Гистерезис входящего напряжения
  1068. */
  1069. void SetVACinputAlarmHisteStr(char *str);
  1070. /**
  1071. * @brief Гистерезис входящего напряжения
  1072. */
  1073. void SetVACinputAlarmHisteInt(float value);
  1074. #endif
  1075. /**
  1076. * @brief Верхняя граница температуры
  1077. */
  1078. void SetTemperatureAlarmHighRangeStr(char *str);
  1079. /**
  1080. * @brief Верхняя граница температуры
  1081. */
  1082. void SetTemperatureAlarmHighRangeInt(float value);
  1083. /**
  1084. * @brief Нижняя граница температуры
  1085. */
  1086. void SetTemperatureAlarmLowRangeStr(char *str);
  1087. /**
  1088. * @brief Нижняя граница температуры
  1089. */
  1090. void SetTemperatureAlarmLowRangeInt(float value);
  1091. /**
  1092. * @brief Гистерезис (температура)
  1093. */
  1094. void SetTemperatureAlarmHisteStr(char *str);
  1095. /**
  1096. * @brief Гистерезис (температура)
  1097. */
  1098. void SetTemperatureAlarmHisteInt(float value);
  1099. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  1100. /**
  1101. * @brief Верхняя граница температуры
  1102. */
  1103. void SetTemperatureCabinetAlarmHighRangeStr(char *str);
  1104. /**
  1105. * @brief Верхняя граница температуры
  1106. */
  1107. void SetTemperatureCabinetAlarmHighRangeInt(float value);
  1108. /**
  1109. * @brief Нижняя граница температуры
  1110. */
  1111. void SetTemperatureCabinetAlarmLowRangeStr(char *str);
  1112. /**
  1113. * @brief Нижняя граница температуры
  1114. */
  1115. void SetTemperatureCabinetAlarmLowRangeInt(float value);
  1116. /**
  1117. * @brief Гистерезис (температура)
  1118. */
  1119. void SetTemperatureCabinetAlarmHisteStr(char *str);
  1120. /**
  1121. * @brief Гистерезис (температура)
  1122. */
  1123. void SetTemperatureCabinetAlarmHisteInt(float value);
  1124. #endif
  1125. /**
  1126. * @brief Верхняя граница нагрузки
  1127. */
  1128. void SetLoadAlarmHighRangeStr(char *str);
  1129. /**
  1130. * @brief Верхняя граница нагрузки
  1131. */
  1132. void SetLoadAlarmHighRangeInt(float value);
  1133. /**
  1134. * @brief Гистерезис (нагрузки)
  1135. */
  1136. void SetLoadAlarmHistStr(char *str);
  1137. /**
  1138. * @brief Гистерезис (нагрузки)
  1139. */
  1140. void SetLoadAlarmHistInt(float value);
  1141. void SetEmptyFuncStr(char *str);
  1142. #endif /* #ifndef PARAMETERS_H */
  1143. /********************************* (C) РОТЕК **********************************/