unsigned char SPID_IsBusy(const Spid *pSpid) { if (pSpid->semaphore == 0) { return 1; } else { return 0; } }