func (pld *MACCommand_PingSlotChannelAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_PING_SLOT_CHANNEL,
		Payload: &MACCommand_PingSlotChannelAns_{
			PingSlotChannelAns: pld,
		},
	}
}
MACCommand returns the PingSlotChannelAns 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,
		},
	}
}
func (pld *MACCommand_DutyCycleReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_DUTY_CYCLE,
		Payload: &MACCommand_DutyCycleReq_{
			DutyCycleReq: pld,
		},
	}
}
func (pld *MACCommand_RxParamSetupReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_RX_PARAM_SETUP,
		Payload: &MACCommand_RxParamSetupReq_{
			RxParamSetupReq: pld,
		},
	}
}
func (pld *MACCommand_RxParamSetupAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_RX_PARAM_SETUP,
		Payload: &MACCommand_RxParamSetupAns_{
			RxParamSetupAns: pld,
		},
	}
}
func (pld *MACCommand_DevStatusAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_DEV_STATUS,
		Payload: &MACCommand_DevStatusAns_{
			DevStatusAns: pld,
		},
	}
}
func (pld *MACCommand_NewChannelReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_NEW_CHANNEL,
		Payload: &MACCommand_NewChannelReq_{
			NewChannelReq: pld,
		},
	}
}
func (pld *MACCommand_NewChannelAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_NEW_CHANNEL,
		Payload: &MACCommand_NewChannelAns_{
			NewChannelAns: pld,
		},
	}
}
func (pld *MACCommand_DLChannelReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_DL_CHANNEL,
		Payload: &MACCommand_DlChannelReq{
			DlChannelReq: pld,
		},
	}
}
func (pld *MACCommand_DLChannelAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_DL_CHANNEL,
		Payload: &MACCommand_DlChannelAns{
			DlChannelAns: pld,
		},
	}
}
func (pld *MACCommand_RxTimingSetupReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_RX_TIMING_SETUP,
		Payload: &MACCommand_RxTimingSetupReq_{
			RxTimingSetupReq: pld,
		},
	}
}
func (pld *MACCommand_TxParamSetupReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_TX_PARAM_SETUP,
		Payload: &MACCommand_TxParamSetupReq_{
			TxParamSetupReq: pld,
		},
	}
}
func (pld *MACCommand_RekeyInd) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_REKEY,
		Payload: &MACCommand_RekeyInd_{
			RekeyInd: pld,
		},
	}
}
func (pld *MACCommand_RekeyConf) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_REKEY,
		Payload: &MACCommand_RekeyConf_{
			RekeyConf: pld,
		},
	}
}
func (pld *MACCommand_ADRParamSetupReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_ADR_PARAM_SETUP,
		Payload: &MACCommand_AdrParamSetupReq{
			AdrParamSetupReq: pld,
		},
	}
}
func (pld *MACCommand_DeviceTimeAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_DEVICE_TIME,
		Payload: &MACCommand_DeviceTimeAns_{
			DeviceTimeAns: pld,
		},
	}
}
func (pld *MACCommand_ForceRejoinReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_FORCE_REJOIN,
		Payload: &MACCommand_ForceRejoinReq_{
			ForceRejoinReq: pld,
		},
	}
}
func (pld *MACCommand_RejoinParamSetupReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_REJOIN_PARAM_SETUP,
		Payload: &MACCommand_RejoinParamSetupReq_{
			RejoinParamSetupReq: pld,
		},
	}
}
func (pld *MACCommand_RejoinParamSetupAns) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_REJOIN_PARAM_SETUP,
		Payload: &MACCommand_RejoinParamSetupAns_{
			RejoinParamSetupAns: pld,
		},
	}
}
func (pld *MACCommand_PingSlotInfoReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_PING_SLOT_INFO,
		Payload: &MACCommand_PingSlotInfoReq_{
			PingSlotInfoReq: pld,
		},
	}
}
func (pld *MACCommand_PingSlotChannelReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_PING_SLOT_CHANNEL,
		Payload: &MACCommand_PingSlotChannelReq_{
			PingSlotChannelReq: pld,
		},
	}
}