Пример #1
0
/**
 * bus->driver->(*write)
 *
 */
static void
arm9tdmi_bus_write (urj_bus_t *bus, uint32_t adr, uint32_t data)
{
    urj_log (URJ_LOG_LEVEL_ALL, "%s:adr=0x%lx,got=0x%lx\n", __func__,
             (long unsigned) adr, (long unsigned) data);
    arm9tdmi_write (bus, adr, data, get_sz (adr));
}
Пример #2
0
int main()
{
    aa aa1;
    //printf("size: %lu %d\n", sizeof(aa1), SIZE_AA);
    printf("size: %d\n", get_sz());
    return 0;
}
Пример #3
0
/**
 * bus->driver->(*read)
 *
 */
static uint32_t
arm9tdmi_bus_read (urj_bus_t *bus, uint32_t adr)
{
    int data = arm9tdmi_read (bus, adr, get_sz (adr));
    urj_log (URJ_LOG_LEVEL_ALL, "%s:adr=0x%lx,got=0x%lx\n", __func__,
             (long unsigned) adr, (long unsigned) data);
    return data;
}
	void vector_t::write(ostream& os)
	{
		cout << "< INICIO DE LA IMPRESIÓN" << endl << endl;
		cout << "{ ";
		for(int i = 0; i < get_sz(); i++){
			if(i!=get_sz()-1)
			{
				cout << get_dato(i+posinicial_) << ", ";
			}
			else
			{
				cout << get_dato(i+posinicial_);
			}
		}
		cout << " }" << endl << endl;;
		cout << "< FIN DE LA IMPRESIÓN" << endl << endl;
	}
Пример #5
0
/**
 * bus->driver->(*read_next)
 *
 */
static uint32_t
arm9tdmi_bus_read_next (urj_bus_t *bus, uint32_t adr)
{
    uint32_t tmp_value = _data_read;
    _data_read = arm9tdmi_read (bus, adr, get_sz (adr));
    urj_log (URJ_LOG_LEVEL_ALL, "%s:adr=0x%lx, got=0x%lx\n", __func__,
             (long unsigned) adr, (long unsigned) _data_read);
    return tmp_value;
}
Пример #6
0
/**
 * bus->driver->(*read_start)
 *
 */
static int
arm9tdmi_bus_read_start (urj_bus_t *bus, uint32_t adr)
{
    _data_read = arm9tdmi_read (bus, adr, get_sz (adr));
    urj_log (URJ_LOG_LEVEL_ALL, "%s:adr=0x%lx, got=0x%lx\n", __func__,
             (long unsigned) adr, (long unsigned) _data_read);

    return URJ_STATUS_OK;
}