parameters.h 29 KB

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