/* Set the buffer for an endpoint. 
The user has to ensure the an endpoint has a valid buffer set in order to ensure proper work. */
void USBD_SetEndpointBuffer(uint8_t addr, uint8_t *buf, uint16_t len)
/* Set the buffer for an endpoint. 
The user has to ensure the an endpoint has a valid buffer set in order to ensure proper work. */
void USBD_SetEndpointBuffer(uint8_t addr, uint8_t *buf, uint16_t len)
{
		device.Endpoints[number].InBuffer = buf;
		device.Endpoints[number].InBufferLength = len;
	} else {
		device.Endpoints[number].OutBuffer = buf;
		device.Endpoints[number].OutBufferLength = len;
	}
}