func (pld *MACCommand_TxParamSetupReq) MACCommand() *MACCommand {
	return &MACCommand{
		Cid: CID_TX_PARAM_SETUP,
		Payload: &MACCommand_TxParamSetupReq_{
			TxParamSetupReq: pld,
		},
	}
}
MACCommand returns the TxParamSetupReq 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,
		},
	}
}