parameters.h 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432
  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. /**
  367. * @brief Настройка вкл/ выкл авторизации
  368. */
  369. void GetAuthEnableStateStr(char *str, uint8_t *len);
  370. #endif
  371. #ifndef BT6702_SERVICE
  372. // ************************************************************************** //
  373. // Температура с внешних датчиков
  374. #ifdef DALLAS_SENSOR_ENABLE
  375. /**
  376. * @brief
  377. */
  378. void GetTempCaseStr(char *str, uint8_t *len);
  379. /**
  380. * @brief
  381. */
  382. void GetTempCaseInt(float *value);
  383. #endif
  384. #endif
  385. // ************************************************************************** //
  386. // Параметры реле/сухих контактов
  387. #ifdef DINS_ENABLE
  388. /**
  389. * @brief Тип действий при срабатывание сухих контактов
  390. */
  391. void GetDINTypeActStr(char *str, uint8_t *len, uint8_t num);
  392. /**
  393. * @brief Тип действий при срабатывание сухих контактов
  394. */
  395. void GetDIN0TypeActStr(char *str, uint8_t *len);
  396. /**
  397. * @brief Тип действий при срабатывание сухих контактов
  398. */
  399. void GetDIN1TypeActStr(char *str, uint8_t *len);
  400. /**
  401. * @brief Имя сухого контакта
  402. */
  403. void GetDINNameStr(char *str, uint8_t *len, uint8_t num);
  404. /**
  405. * @brief Имя сухого контакта
  406. */
  407. void GetDIN0NameStr(char *str, uint8_t *len);
  408. /**
  409. * @brief Имя сухого контакта
  410. */
  411. void GetDIN1NameStr(char *str, uint8_t *len);
  412. /**
  413. * @brief Состояние сухого контакта
  414. */
  415. void GetDINStatusStr(char *str, uint8_t *len, uint8_t num);
  416. /**
  417. * @brief Состояние сухого контакта
  418. */
  419. void GetDIN0StatusStr(char *str, uint8_t *len);
  420. /**
  421. * @brief Состояние сухого контакта
  422. */
  423. void GetDIN1StatusStr(char *str, uint8_t *len);
  424. /**
  425. * @brief Состояние сухого контакта
  426. */
  427. void GetDIN0StatusStrRU(char *str, uint8_t *len);
  428. #endif
  429. #ifdef DOUTS_ENABLE
  430. /**
  431. * @brief Источник срабатывания реле
  432. */
  433. void GetROTypeActStr(char *str, uint8_t *len, uint8_t num);
  434. /**
  435. * @brief Источник срабатывания реле
  436. */
  437. void GetRO0TypeActStr(char *str, uint8_t *len);
  438. /**
  439. * @brief Источник срабатывания реле
  440. */
  441. void GetRO1TypeActStr(char *str, uint8_t *len);
  442. /**
  443. * @brief Источник срабатывания реле
  444. */
  445. void GetRO2TypeActStr(char *str, uint8_t *len);
  446. /**
  447. * @brief Состояние релейного выхода
  448. */
  449. void GetDOUTStatusStr(char *str, uint8_t *len, uint8_t num);
  450. /**
  451. * @brief Состояние релейного выхода
  452. */
  453. void GetDOUTStatusStrRU(char *str, uint8_t *len, uint8_t num);
  454. /**
  455. * @brief Состояние релейного выхода
  456. */
  457. void GetDOUT0StatusStr(char *str, uint8_t *len);
  458. /**
  459. * @brief Состояние релейного выхода
  460. */
  461. void GetDOUT1StatusStr(char *str, uint8_t *len);
  462. /**
  463. * @brief Состояние релейного выхода
  464. */
  465. void GetDOUT2StatusStr(char *str, uint8_t *len);
  466. #endif
  467. #ifdef TELNET_ENABLE
  468. // ************************************************************************** //
  469. // Параметры Telnet
  470. /**
  471. * @brief Текущий Порт
  472. */
  473. void GetTelnetPortStr(char *str, uint8_t *len);
  474. /**
  475. * @brief Настройка вкл/ выкл Telnet сервера
  476. */
  477. void GetTelnetEnableStateStr(char *str, uint8_t *len);
  478. // ************************************************************************** //
  479. // Параметры SSH
  480. /**
  481. * @brief Текущий Порт
  482. */
  483. void GetSSHPortStr(char *str, uint8_t *len);
  484. /**
  485. * @brief Настройка вкл/ выкл SSH сервера
  486. */
  487. void GetSSHEnableStateStr(char *str, uint8_t *len);
  488. #endif
  489. #ifdef HARDWARE_BT6711
  490. // ************************************************************************** //
  491. // Параметры FTP
  492. void GetFTPServer(char *str, uint8_t *len);
  493. void GetFTPPort(char *str, uint8_t *len);
  494. void GetFTPPath(char *str, uint8_t *len);
  495. void GetFTPLogin(char *str, uint8_t *len);
  496. void GetFTPPassword(char *str, uint8_t *len);
  497. // ************************************************************************** //
  498. // Параметры Syslog
  499. void GetSyslogEnable(char *str, uint8_t *len);
  500. void GetSyslogServer(char *str, uint8_t *len);
  501. void GetSyslogPort(char *str, uint8_t *len);
  502. #endif // HARDWARE_BT6711
  503. // ************************************************************************** //
  504. // Флаги
  505. /**
  506. * @brief Установить признак изменения сетевых параметров
  507. */
  508. void GetWebReinitFlag(char *str, uint8_t *len);
  509. // ************************************************************************** //
  510. // Параметры настройки ИБП
  511. /**
  512. * @brief Минимальное напряжение на ячейках АКБ
  513. */
  514. void GetUPSVoltCellMinStr(char *str, uint8_t *len);
  515. /**
  516. * @brief Минимальное напряжение на ячейках АКБ
  517. */
  518. void GetUPSVoltCellMinInt(float *value);
  519. /**
  520. * @brief Максимальное напряжение на ячейках АКБ
  521. */
  522. void GetUPSVoltCellMaxStr(char *str, uint8_t *len);
  523. /**
  524. * @brief Максимальное напряжение на ячейках АКБ
  525. */
  526. void GetUPSVoltCellMaxInt(float *value);
  527. /**
  528. * @brief Дата замены АКБ
  529. */
  530. void GetDataNextChangeAKBStrRU(char *str, uint8_t *len);
  531. /**
  532. * @brief Дата замены АКБ
  533. */
  534. void GetDataNextChangeAKBStr(char *str, uint8_t *len);
  535. /**
  536. * @brief Дата установки АКБ
  537. */
  538. void GetDataSetAKBStr(char *str, uint8_t *len);
  539. /**
  540. * @brief Срок службы АКБ
  541. */
  542. void GetLifeTimeAKBStr(char *str, uint8_t *len);
  543. /**
  544. * @brief Номинальное напряжение АКБ
  545. */
  546. void GetVoltageAKBNominalStr(char *str, uint8_t *len);
  547. /**
  548. * @brief Полная мощность АКБ
  549. */
  550. void GetUPSPowerStr(char *str, uint8_t *len);
  551. /**
  552. * @brief Полная мощность АКБ
  553. */
  554. void GetUPSPowerEnumStr(char *str, uint8_t *len);
  555. /**
  556. * @brief КПД ИБП
  557. */
  558. void GetUPSEfficiencyFactorInt(float *value);
  559. /**
  560. * @brief Емкость АКБ
  561. */
  562. void GetCapacityNominalAKBStr(char *str, uint8_t *len);
  563. /**
  564. * @brief Емкость АКБ
  565. */
  566. void GetCapacityNominalAKBInt(int32_t *value);
  567. // ************************************************************************** //
  568. // Параметры менеджера аварийных событий
  569. /**
  570. * @brief Верхняя граница VAC
  571. */
  572. void GetVACAlarmHighRangeStr(char *str, uint8_t *len);
  573. /**
  574. * @brief Верхняя граница VAC
  575. */
  576. void GetVACAlarmHighRangeInt(int32_t *value);
  577. /**
  578. * @brief Нижняя граница VAC
  579. */
  580. void GetVACAlarmLowRangeStr(char *str, uint8_t *len);
  581. /**
  582. * @brief Нижняя граница VAC
  583. */
  584. void GetVACAlarmLowRangeInt(int32_t *value);
  585. /**
  586. * @brief Гистерезис (VAC)
  587. */
  588. void GetVACAlarmHisteStr(char *str, uint8_t *len);
  589. /**
  590. * @brief Гистерезис (VAC)
  591. */
  592. void GetVACAlarmHisteInt(float *value);
  593. #ifdef VAC_IN_MONITOR
  594. /**
  595. * @brief Верхняя граница входящего напряжения
  596. */
  597. void GetVACInputAlarmHighRangeStr(char *str, uint8_t *len);
  598. /**
  599. * @brief Верхняя граница входящего напряжения
  600. */
  601. void GetVACInputAlarmHighRangeInt(int32_t *value);
  602. /**
  603. * @brief Нижняя граница входящего напряжения
  604. */
  605. void GetVACInputAlarmLowRangeStr(char *str, uint8_t *len);
  606. /**
  607. * @brief Нижняя граница входящего напряжения
  608. */
  609. void GetVACInputAlarmLowRangeInt(int32_t *value);
  610. /**
  611. * @brief Гистерезис входящего напряжения
  612. */
  613. void GetVACinputAlarmHisteStr(char *str, uint8_t *len);
  614. /**
  615. * @brief Гистерезис входящего напряжения
  616. */
  617. void GetVACinputAlarmHisteInt(float *value);
  618. #endif
  619. /**
  620. * @brief Верхняя граница температуры
  621. */
  622. void GetTemperatureAlarmHighRangeStr(char *str, uint8_t *len);
  623. /**
  624. * @brief Верхняя граница температуры
  625. */
  626. void GetTemperatureAlarmHighRangeInt(int32_t *value);
  627. /**
  628. * @brief Нижняя граница температуры
  629. */
  630. void GetTemperatureAlarmLowRangeStr(char *str, uint8_t *len);
  631. /**
  632. * @brief Нижняя граница температуры
  633. */
  634. void GetTemperatureAlarmLowRangeInt(int32_t *value);
  635. /**
  636. * @brief Гистерезис (температура)
  637. */
  638. void GetTemperatureAlarmHisteStr(char *str, uint8_t *len);
  639. /**
  640. * @brief Гистерезис (температура)
  641. */
  642. void GetTemperatureAlarmHisteInt(float *value);
  643. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  644. /**
  645. * @brief Верхняя граница температуры
  646. */
  647. void GetTemperatureCabinetAlarmHighRangeStr(char *str, uint8_t *len);
  648. /**
  649. * @brief Верхняя граница температуры
  650. */
  651. void GetTemperatureCabinetAlarmHighRangeInt(int32_t *value);
  652. /**
  653. * @brief Нижняя граница температуры
  654. */
  655. void GetTemperatureCabinetAlarmLowRangeStr(char *str, uint8_t *len);
  656. /**
  657. * @brief Нижняя граница температуры
  658. */
  659. void GetTemperatureCabinetAlarmLowRangeInt(int32_t *value);
  660. /**
  661. * @brief Гистерезис (температура)
  662. */
  663. void GetTemperatureCabinetAlarmHisteStr(char *str, uint8_t *len);
  664. /**
  665. * @brief Гистерезис (температура)
  666. */
  667. void GetTemperatureCabinetAlarmHisteInt(float *value);
  668. #endif
  669. /**
  670. * @brief Верхняя граница нагрузки
  671. */
  672. void GetLoadAlarmHighRangeStr(char *str, uint8_t *len);
  673. /**
  674. * @brief Верхняя граница нагрузки
  675. */
  676. void GetLoadAlarmHighRangeInt(int32_t *value);
  677. /**
  678. * @brief Гистерезис (нагрузки)
  679. */
  680. void GetLoadAlarmHisteStr(char *str, uint8_t *len);
  681. /**
  682. * @brief Гистерезис (нагрузки)
  683. */
  684. void GetLoadAlarmHisteInt(float *value);
  685. // ************************************************************************** //
  686. // Установка параметрв
  687. // ************************************************************************** //
  688. /**
  689. * @brief Установить признак обновления ПО.
  690. */
  691. void SetLoadMode(void);
  692. /**
  693. * @brief Установить признак изменения сетевых параметров
  694. */
  695. void SetWebReinitFlag(bool value);
  696. /**
  697. * @brief Установить флаг подтверждения сетевых настроек пользователем
  698. */
  699. void SetConfirmWebParamsFlag(void);
  700. #ifdef NOTIFICATION_CONTROL_ENABLE
  701. // ************************************************************************** //
  702. // Параметры уведомления
  703. /**
  704. * @brief Параметр разрешения отправки
  705. */
  706. void SetNotificationFlagsStr(uint8_t *value, uint8_t num);
  707. #endif
  708. // ************************************************************************** //
  709. // Сетевые параметры
  710. /**
  711. * @brief IP адрес
  712. */
  713. void SetIPStr(char *str);
  714. /**
  715. * @brief Шлюз
  716. */
  717. void SetGatewayStr(char *str);
  718. /**
  719. * @brief Текущая маска подсети
  720. */
  721. void SetMaskStr(char *str);
  722. /**
  723. * @brief Настройка DHCP
  724. */
  725. void SetDhcpStateStr(char *str);
  726. /**
  727. * @brief Настройка DHCP
  728. */
  729. void SetUDPDhcpStateStr(char *str);
  730. #ifdef WHITELIST_ENABLE
  731. // ************************************************************************** //
  732. // Параметры довверительных хостов
  733. /**
  734. * @brief диапазон доверительных хостов
  735. */
  736. void SetWhiteListSTR(char *str, uint8_t num);
  737. /**
  738. * @brief Первый диапазон доверительных хостов
  739. */
  740. void SetWhiteList1STR(char *str);
  741. /**
  742. * @brief Второй диапазон доверительных хостов
  743. */
  744. void SetWhiteList2STR(char *str);
  745. /**
  746. * @brief Третий диапазон доверительных хостов
  747. */
  748. void SetWhiteList3STR(char *str);
  749. /**
  750. * @brief Четвертый диапазон доверительных хостов
  751. */
  752. void SetWhiteList4STR(char *str);
  753. /**
  754. * @brief Пятый диапазон доверительных хостов
  755. */
  756. void SetWhiteList5STR(char *str);
  757. #endif
  758. #ifdef PORTGW_ENABLE
  759. // ************************************************************************** //
  760. // Параметры прозрачного порта
  761. /**
  762. * @brief Включен/Выключен
  763. */
  764. void SetPortGwEnabledStr(char *str);
  765. /**
  766. * @brief Сетевой порт
  767. */
  768. void SetPortGwPortnumStr(char *str);
  769. /**
  770. * @brief Скорость передачи данных
  771. */
  772. void SetPortGwBaudStr(char *str);
  773. /**
  774. * @brief Четность
  775. */
  776. void SetPortGwParityStr(char *str);
  777. /**
  778. * @brief Число бит данных
  779. */
  780. void SetPortGwDatabitsStr(char *str);
  781. /**
  782. * @brief Число стоп-бит
  783. */
  784. void SetPortGwStopbitsStr(char *str);
  785. #endif
  786. #ifdef DALLAS_SENSOR_ENABLE
  787. // ************************************************************************** //
  788. // Параметры датчика температуры
  789. /**
  790. * @brief Размещение датчика температуры 1
  791. */
  792. void SetTS1locationStr(char *str);
  793. /**
  794. * @brief Размещение датчика температуры 2
  795. */
  796. void SetTS2locationStr(char *str);
  797. #endif
  798. // ************************************************************************** //
  799. // Параметры SNMP
  800. /**
  801. * @brief TRAP community
  802. */
  803. void SetTrapCommunity(char *str);
  804. /**
  805. * @brief Community для чтения
  806. */
  807. void SetReadCommunity(char *str);
  808. /**
  809. * @brief Community для записи
  810. */
  811. void SetWriteCommunity(char *str);
  812. /**
  813. * @brief IP SNMP менеджера
  814. */
  815. void SetManagerIp(char *str);
  816. void SetManagerIp2(char *str);
  817. void SetManagerIp3(char *str);
  818. void SetManagerIp4(char *str);
  819. void SetManagerIp5(char *str);
  820. /**
  821. * @brief Название устройсва устройства
  822. */
  823. void SetNameDeviceStr(char *str);
  824. /**
  825. * @brief Установить владельца
  826. */
  827. void SetOwner(char *str);
  828. /**
  829. * @brief Установить местоположение
  830. */
  831. void SetLocation(char *str);
  832. /**
  833. * @brief Установить комментарий
  834. */
  835. void SetComment(char *str);
  836. #ifdef RADIUS_SERVER_ENABLE
  837. // ************************************************************************** //
  838. // Сетевые параметры RADIUS сервера
  839. /**
  840. * @brief IP адрес
  841. */
  842. void SetRDSIpStr(char *str);
  843. /**
  844. * @brief Порт
  845. */
  846. void SetRDSPortStr(char *str);
  847. /**
  848. * @brief Код access
  849. */
  850. void SetRDSKeyAccesstStr(char *str);
  851. /**
  852. * @brief пароль RADIUS
  853. */
  854. void SetRDSPasswordkStr(char *str);
  855. /**
  856. * @brief Настройка вкл/ выкл RADIUS сервера
  857. */
  858. void SetRDSEnableStateStr(char *str);
  859. /**
  860. * @brief Настройка вкл/ выкл авторизации
  861. */
  862. void SetAuthEnableStateStr(char *str);
  863. #endif
  864. #ifdef TELNET_ENABLE
  865. // ************************************************************************** //
  866. // Параметры Telnet
  867. /**
  868. * @brief Текущий Порт
  869. */
  870. void SetTelnetPortStr(char *str);
  871. /**
  872. * @brief Настройка вкл/ выкл Telnet сервера
  873. */
  874. void SetTelnetEnableStateStr(char *str);
  875. // ************************************************************************** //
  876. // Параметры SSH
  877. /**
  878. * @brief Текущий Порт
  879. */
  880. void SetSSHPortStr(char *str);
  881. /**
  882. * @brief Настройка вкл/ выкл SSH сервера
  883. */
  884. void SetSSHEnableStateStr(char *str);
  885. #endif
  886. #ifdef HARDWARE_BT6711
  887. // ************************************************************************** //
  888. // Параметры Syslog
  889. void SetSyslogEnable(char *str);
  890. void SetSyslogServer(char *str);
  891. void SetSyslogPort(char *str);
  892. #endif // HARDWARE_BT6711
  893. // ************************************************************************** //
  894. // Параметры даты и времени
  895. /**
  896. * @brief Дата
  897. */
  898. void SetDateStr(char *str);
  899. /**
  900. * @brief Время
  901. */
  902. void SetTimeStr(char *str);
  903. /**
  904. * @brief Время
  905. */
  906. void SetTimeWebStr(char *str);
  907. // ************************************************************************** //
  908. // Параметры SNTP
  909. /**
  910. * @brief Состояние SNTP
  911. */
  912. void SetSntpStateStr(char *str);
  913. /**
  914. * @brief IP адрес SNTP сервера
  915. */
  916. void SetSntpServerIpStr(char *str);
  917. /**
  918. * @brief Часовой пояс контроллера
  919. */
  920. void SetSntpTimeZoneStr(char *str);
  921. // ************************************************************************** //
  922. // Параметры реле/сухих контактов
  923. #ifdef DINS_ENABLE
  924. /**
  925. * @brief Тип действий при срабатывание сухих контактов
  926. */
  927. void SetDINTypeActStr(char *str, uint8_t num);
  928. /**
  929. * @brief Тип действий при срабатывание сухих контактов
  930. */
  931. void SetDIN0TypeActStr(char *str);
  932. /**
  933. * @brief Тип действий при срабатывание сухих контактов
  934. */
  935. void SetDIN1TypeActStr(char *str);
  936. /**
  937. * @brief Имя сухого контакта
  938. */
  939. void SetDINNameStr(char *str, uint8_t num);
  940. /**
  941. * @brief Имя сухого контакта
  942. */
  943. void SetDIN0NameStr(char *str);
  944. /**
  945. * @brief Имя сухого контакта
  946. */
  947. void SetDIN1NameStr(char *str);
  948. #endif
  949. #ifdef DOUTS_ENABLE
  950. /**
  951. * @brief Источник срабатывания реле
  952. */
  953. void SetROTypeActStr(char *str, uint8_t num);
  954. /**
  955. * @brief Источник срабатывания реле 1
  956. */
  957. void SetRO1TypeActStr(char *str);
  958. /**
  959. * @brief Источник срабатывания реле 2
  960. */
  961. void SetRO2TypeActStr(char *str);
  962. /**
  963. * @brief Источник срабатывания реле 3
  964. */
  965. void SetRO3TypeActStr(char *str);
  966. /**
  967. * @brief
  968. */
  969. void SetROStr(char *str, uint8_t num);
  970. /**
  971. * @brief
  972. */
  973. void SetROInt(uint8_t val, uint8_t num);
  974. #endif
  975. // ************************************************************************** //
  976. // Параметры настройки ИБП
  977. /**
  978. * @brief Минимальное напряжение на ячейках АКБ
  979. */
  980. void SetUPSVoltCellMinStr(char *str);
  981. /**
  982. * @brief Минимальное напряжение на ячейках АКБ
  983. */
  984. void SetUPSVoltCellMinInt(float value);
  985. /**
  986. * @brief Максимальное напряжение на ячейках АКБ
  987. */
  988. void SetUPSVoltCellMaxStr(char *str);
  989. /**
  990. * @brief Максимальное напряжение на ячейках АКБ
  991. */
  992. void SetUPSVoltCellMaxInt(float value);
  993. /**
  994. * @brief Дата установки АКБ
  995. */
  996. void SetDataSetAKBStr(char *str);
  997. /**
  998. * @brief Срок службы АКБ
  999. */
  1000. void SetLifeTimeAKBStr(char *str);
  1001. /**
  1002. * @brief Номинальное напряжение АКБ
  1003. */
  1004. void SetVoltageAKBNominalStr(char *str);
  1005. /**
  1006. * @brief Полная мощность АКБ
  1007. */
  1008. void SetUPSPowerStr(char *str);
  1009. /**
  1010. * @brief Полная мощность АКБ
  1011. */
  1012. void SetUPSPowerEnumStr(char *str);
  1013. /**
  1014. * @brief Емкость АКБ
  1015. */
  1016. void SetCapacityNominalAKBStr(char *str);
  1017. /**
  1018. * @brief Серийный номер ИБП
  1019. */
  1020. void SetUPSSerialStr(char *str);
  1021. // ************************************************************************** //
  1022. // Параметры менеджера аварий
  1023. /**
  1024. * @brief Верхняя граница VAC
  1025. */
  1026. void SetVACAlarmHighRangeStr(char *str);
  1027. /**
  1028. * @brief Верхняя граница VAC
  1029. */
  1030. void SetVACAlarmHighRangeInt(float value);
  1031. /**
  1032. * @brief Нижняя граница VAC
  1033. */
  1034. void SetVACAlarmLowRangeStr(char *str);
  1035. /**
  1036. * @brief Нижняя граница VAC
  1037. */
  1038. void SetVACAlarmLowRangeInt(float value);
  1039. /**
  1040. * @brief Гистерезис (VAC)
  1041. */
  1042. void SetVACAlarmHisteStr(char *str);
  1043. /**
  1044. * @brief Гистерезис (VAC)
  1045. */
  1046. void SetVACAlarmHisteInt(float value);
  1047. #ifdef VAC_IN_MONITOR
  1048. /**
  1049. * @brief Верхняя граница входящего напряжения
  1050. */
  1051. void SetVACInputAlarmHighRangeStr(char *str);
  1052. /**
  1053. * @brief Верхняя граница входящего напряжения
  1054. */
  1055. void SetVACInputAlarmHighRangeInt(float value);
  1056. /**
  1057. * @brief Нижняя граница входящего напряжения
  1058. */
  1059. void SetVACInputAlarmLowRangeStr(char *str);
  1060. /**
  1061. * @brief Нижняя граница входящего напряжения
  1062. */
  1063. void SetVACInputAlarmLowRangeInt(float value);
  1064. /**
  1065. * @brief Гистерезис входящего напряжения
  1066. */
  1067. void SetVACinputAlarmHisteStr(char *str);
  1068. /**
  1069. * @brief Гистерезис входящего напряжения
  1070. */
  1071. void SetVACinputAlarmHisteInt(float value);
  1072. #endif
  1073. /**
  1074. * @brief Верхняя граница температуры
  1075. */
  1076. void SetTemperatureAlarmHighRangeStr(char *str);
  1077. /**
  1078. * @brief Верхняя граница температуры
  1079. */
  1080. void SetTemperatureAlarmHighRangeInt(float value);
  1081. /**
  1082. * @brief Нижняя граница температуры
  1083. */
  1084. void SetTemperatureAlarmLowRangeStr(char *str);
  1085. /**
  1086. * @brief Нижняя граница температуры
  1087. */
  1088. void SetTemperatureAlarmLowRangeInt(float value);
  1089. /**
  1090. * @brief Гистерезис (температура)
  1091. */
  1092. void SetTemperatureAlarmHisteStr(char *str);
  1093. /**
  1094. * @brief Гистерезис (температура)
  1095. */
  1096. void SetTemperatureAlarmHisteInt(float value);
  1097. #if !(HARDWARE_BT6709 || HARDWARE_BT6709_MTS)
  1098. /**
  1099. * @brief Верхняя граница температуры
  1100. */
  1101. void SetTemperatureCabinetAlarmHighRangeStr(char *str);
  1102. /**
  1103. * @brief Верхняя граница температуры
  1104. */
  1105. void SetTemperatureCabinetAlarmHighRangeInt(float value);
  1106. /**
  1107. * @brief Нижняя граница температуры
  1108. */
  1109. void SetTemperatureCabinetAlarmLowRangeStr(char *str);
  1110. /**
  1111. * @brief Нижняя граница температуры
  1112. */
  1113. void SetTemperatureCabinetAlarmLowRangeInt(float value);
  1114. /**
  1115. * @brief Гистерезис (температура)
  1116. */
  1117. void SetTemperatureCabinetAlarmHisteStr(char *str);
  1118. /**
  1119. * @brief Гистерезис (температура)
  1120. */
  1121. void SetTemperatureCabinetAlarmHisteInt(float value);
  1122. #endif
  1123. /**
  1124. * @brief Верхняя граница нагрузки
  1125. */
  1126. void SetLoadAlarmHighRangeStr(char *str);
  1127. /**
  1128. * @brief Верхняя граница нагрузки
  1129. */
  1130. void SetLoadAlarmHighRangeInt(float value);
  1131. /**
  1132. * @brief Гистерезис (нагрузки)
  1133. */
  1134. void SetLoadAlarmHistStr(char *str);
  1135. /**
  1136. * @brief Гистерезис (нагрузки)
  1137. */
  1138. void SetLoadAlarmHistInt(float value);
  1139. void SetEmptyFuncStr(char *str);
  1140. #endif /* #ifndef PARAMETERS_H */
  1141. /********************************* (C) РОТЕК **********************************/