func (pld *MACCommand_DutyCycleReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_DUTY_CYCLE,
		Payload: &MACCommand_DutyCycleReq_{
			DutyCycleReq: pld,
		},
	}
}
MACCommand returns the DutyCycleReq MAC command as a *MACCommand.
package ttnpb
func (cid MACCommandIdentifier) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: cid,
	}
}
func (pld *MACCommand_RawPayload) MACCommand(cid MACCommandIdentifier) *MACCommand {
	return &MACCommand{
		Cid:     cid,
		Payload: pld,
	}
}
func (pld *MACCommand_ResetInd) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_RESET,
		Payload: &MACCommand_ResetInd_{
			ResetInd: pld,
		},
	}
}
func (pld *MACCommand_ResetConf) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_RESET,
		Payload: &MACCommand_ResetConf_{
			ResetConf: pld,
		},
	}
}
func (pld *MACCommand_LinkCheckAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_LINK_CHECK,
		Payload: &MACCommand_LinkCheckAns_{
			LinkCheckAns: pld,
		},
	}
}
func (pld *MACCommand_LinkADRReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_LINK_ADR,
		Payload: &MACCommand_LinkAdrReq{
			LinkAdrReq: pld,
		},
	}
}
func (pld *MACCommand_LinkADRAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_LINK_ADR,
		Payload: &MACCommand_LinkAdrAns{
			LinkAdrAns: pld,
		},
	}
}