//---------------------------------------------------------------------------
#ifndef threadsearchH
#define threadsearchH
//---------------------------------------------------------------------------
#include <Classes.hpp>

#define MAX_SWITCHES 20

//---------------------------------------------------------------------------
class SearchThread : public TThread
{
private:
protected:
    void __fastcall Execute();
public:
    __fastcall SearchThread(bool CreateSuspended);
};
//---------------------------------------------------------------------------

extern unsigned char bus_idents[MAX_SWITCHES + 1][8];	/* Identification numbers found on the bus  */
extern int max_bus_devices;    /* Maximum number devices found on the bus  */
extern int Sequence[MAX_SWITCHES + 1];
extern unsigned int nieuw; /* Are there buttons pressed which where not pressed */
extern unsigned int mask,NewFound;
#endif
