Ejemplo n.º 1
0
//------------------------------------------------------------------------------
// Open a device specified by it's id string, as returned
// by mbug_2820_list()
mbug_device mbug_2165_open_str( const char *id )
{
	mbug_device dev;
	unsigned int type = mbug_type_from_id( id );
	if (type != 2165) return NULL;
	dev = mbug_open_str( id );
	if ( (dev != NULL) && (base_clock == 0) )
	{
		base_clock = mbug_2165_get_base_clock( dev );
		mod_clock = mbug_2165_get_mod_clock( dev );
	}
	return dev;
}
Ejemplo n.º 2
0
//------------------------------------------------------------------------------
// Open a device specified by it's id string, as returned
// by mbug_2820_list()
mbug_device mbug_2820_open_str( const char *id )
{
	mbug_device dev = 0;
	unsigned int type = mbug_type_from_id( id );
	if (type != 2820) return NULL;

	dev =  mbug_open_str( id );
	if (!dev) return 0;

	mbug_2820_init( dev );
	
	return dev;
}
Ejemplo n.º 3
0
//------------------------------------------------------------------------------
// Open a device specified by it's id string, as returned
// by mbug_2810_list()
mbug_device mbug_2810_open_str( const char *id )
{
	unsigned int type = mbug_type_from_id( id );
	if (type != 2810) return NULL;
	return mbug_open_str( id );
}