parameters.h 29 KB

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