Пример #1
0
/**
 * Free the underlying Jaguar object.
 * Free the underlying object and free the associated resources.
 *
 * @param slot The slot the digital module is plugged into
 * @param channel The PWM channel connected to this speed controller
 */
void DeleteJaguar(UINT32 slot, UINT32 channel)
{
	Jaguar *jaguar = (Jaguar *) AllocatePWM(slot, channel, CreateJaguarStatic);
	DeletePWM(slot, channel);
	delete jaguar;
}
/**
 * Delete resources for a Victor
 * Free the underlying object and delete the allocated resources for the Victor
 *
 * @param slot The slot the digital module is plugged into
 * @param channel The PWM channel used for this Victor
 */
void DeleteVictor(UINT32 slot, UINT32 channel)
{
	Victor *victor = (Victor *) AllocatePWM(slot, channel, CreateVictorStatic);
	delete victor;
	DeletePWM(slot, channel);
}