parameters.h 36 KB

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