void PhaseMode_set_N1(void) { Parameter_Num14=1; PP2_Parameter_Num14(); CNT_Send_Adr=0; Send_OneData(0x0080,2,0); Send_OneData(0x0081,1,0); Send_OneData(0x0085,1,0); Send_OneData(0x00CE,2,0); MYDMA_Enable(DMA2_Stream7,CNT_Send_Adr); } void PhaseMode_set_N2(void) { Parameter_Num14=2; PP2_Parameter_Num14(); CNT_Send_Adr=0; Send_OneData(0x0080,1,0); Send_OneData(0x0081,2,0); Send_OneData(0x0085,1,0); Send_OneData(0x00CE,0,0); MYDMA_Enable(DMA2_Stream7,CNT_Send_Adr); } void PhaseMode_set_N3(void) { Parameter_Num14=3; PP2_Parameter_Num14(); CNT_Send_Adr=0; Send_OneData(0x0080,1,0); Send_OneData(0x0081,1,0); Send_OneData(0x0085,2,0); Send_OneData(0x00CE,2,0); MYDMA_Enable(DMA2_Stream7,CNT_Send_Adr); } void Phase_Mode_Dis(u8 assert) { switch(Parameter_Num14) { case 0X01:Send_OneData(0x0015,1,assert); break; case 0X02:Send_OneData(0x0015,0,assert); break; case 0X03:Send_OneData(0x0015,3,assert); break; default: break; } }
时间: 2023-05-19 19:07:10 浏览: 94
这是一段 C 语言代码,其中定义了三个函数 PhaseMode_set_N1、PhaseMode_set_N2 和 PhaseMode_set_N3,以及一个 switch 语句中的函数 Phase_Mode_Dis。这些函数都涉及到一些参数的设置和数据的发送,但具体的功能需要根据上下文来确定。
阅读全文