snmp_custom.h 869 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _SNMP_CUSTOM_H_
  2. #define _SNMP_CUSTOM_H_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <stdarg.h>
  9. #include <stdint.h>
  10. #include "snmp.h"
  11. extern dataEntryType snmpData[];
  12. extern const int32_t maxData;
  13. // Define for using W5500-EVB: H/W Dependency (e.g., LEDs...)
  14. //#define _USE_WIZNET_W5500_EVB_
  15. #define COMMUNITY "public\0"
  16. #define COMMUNITY_SIZE (strlen(COMMUNITY))
  17. /* Predefined function: Response value control */
  18. void initTable();
  19. /* User defined functions: LED control examples */
  20. #ifdef _USE_WIZNET_W5500_EVB_
  21. void get_LEDStatus_all(void *ptr, uint8_t *len);
  22. void set_LEDStatus_R(int32_t val);
  23. void set_LEDStatus_G(int32_t val);
  24. void set_LEDStatus_B(int32_t val);
  25. #endif
  26. /* SNMP Trap: warmStart(1) */
  27. void initial_Trap(uint8_t * managerIP, uint8_t * agentIP);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif