TR181-XPON  1.4.0
TR-181 PON manager.
pon_mode.c File Reference
#include "pon_mode.h"

Go to the source code of this file.

Functions

const char * pon_mode_to_string (pon_mode_t mode)
 

Function Documentation

◆ pon_mode_to_string()

const char* pon_mode_to_string ( pon_mode_t  mode)

Return ASCII representation for given PON mode.

tr181-xpon can use the returned value in log messages.

Definition at line 70 of file pon_mode.c.

70  {
71  switch(mode) {
72  case pon_mode_unknown: return "Unknown";
73  case pon_mode_gpon: return "G-PON";
74  case pon_mode_xg_pon: return "XG-PON";
75  case pon_mode_ng_pon2: return "NG-PON2";
76  case pon_mode_xgs_pon: return "XGS-PON";
77  default: break;
78  }
79  return "Unknown";
80 }
@ pon_mode_ng_pon2
Definition: pon_mode.h:70
@ pon_mode_unknown
Definition: pon_mode.h:67
@ pon_mode_gpon
Definition: pon_mode.h:68
@ pon_mode_xgs_pon
Definition: pon_mode.h:71
@ pon_mode_xg_pon
Definition: pon_mode.h:69
Here is the caller graph for this function: