STM/Modbus/Baremetal/UART_RS485_Modbus_Slave/Source/Modbus/Slave/Modbus_Slave.c
void WriteMBRegistertoData(unsigned int StAddr, unsigned int count,
		volatile unsigned char *inreg, unsigned int *outreg)
{
	for (unsigned char c = 0; c < count; c++)
		*(outreg + StAddr + c) = (unsigned int) (*(inreg + 7 + (c * 2)) << 8)
				| (unsigned int) (*(inreg + 7 + (c * 2) + 1));
}
//C function to Store Analog Write operations to unsigned integer Variable array

C function to Store Analog Write operations to unsigned integer Variable array
C function to Store Analog Write operations to unsigned integer Variable array
void WriteMBRegistertoData(unsigned int StAddr, unsigned int count,
		volatile unsigned char *inreg, unsigned int *outreg)
{
	for (unsigned char c = 0; c < count; c++)
		*(outreg + StAddr + c) = (unsigned int) (*(inreg + 7 + (c * 2)) << 8)
				| (unsigned int) (*(inreg + 7 + (c * 2) + 1));
}
void WriteMBRegistertoData ( unsigned int StAddr , unsigned int count , volatile unsigned char * inreg , unsigned int * outreg ) { for ( unsigned char c = 0 ; c < count ; c ++ ) * ( outreg + StAddr + c ) = ( unsigned int ) ( * ( inreg + 7 + ( c * 2 ) ) << 8 ) | ( unsigned int ) ( * ( inreg + 7 + ( c * 2 ) + 1 ) ) ; }
C function to Store Analog Write operations to unsigned integer Variable array
C function to Store Analog Write operations to unsigned integer Variable array