/* DAC960_AllocateCommand allocates a Command structure from Controller's free list. During driver initialization, a special initialization command has been placed on the free list to guarantee that command allocation can never fail.  */
static DAC960_Command_T* DAC960_AllocateCommand(DAC960_Controller_T *Controller)
/* DAC960_AllocateCommand allocates a Command structure from Controller's free list. During driver initialization, a special initialization command has been placed on the free list to guarantee that command allocation can never fail.  */
static DAC960_Command_T* DAC960_AllocateCommand(DAC960_Controller_T *Controller)
{
  DAC960_Command_T *Command = Controller->FreeCommands;
  if (Command == NULL) return NULL;
  Controller->FreeCommands = Command->Next;
  Command->Next = NULL;
  return Command;
}