func (i *IE) ReportingFrequency() (uint8, error) {
	if len(i.Payload) < 1 {
		return 0, io.ErrUnexpectedEOF
	}
	switch i.Type {
	case ReportingFrequency:
		return i.Payload[0], nil
	case QoSMonitoringPerQoSFlowControlInformation:
		ies, err := i.QoSMonitoringPerQoSFlowControlInformation()
		if err != nil {
			return 0, err
		}
		for _, x := range ies {
			if x.Type == ReportingFrequency {
				return x.ReportingFrequency()
			}
		}
		return 0, ErrIENotFound
	default:
		return 0, &InvalidTypeError{Type: i.Type}
	}
}
ReportingFrequency returns ReportingFrequency in uint8 if the type of IE matches.
package ie
import "io"
func NewReportingFrequency(sesrl, perio, evett int) *IE {
	return newUint8ValIE(ReportingFrequency, uint8((sesrl<<2)|(perio<<1)|(evett)))
}