Lines Matching refs:dev
23 static int pn544_close(hw_device_t *dev) {
24 free(dev);
34 nfc_pn544_device_t *dev = calloc(1, sizeof(nfc_pn544_device_t));
36 dev->common.tag = HARDWARE_DEVICE_TAG;
37 dev->common.version = 0;
38 dev->common.module = (struct hw_module_t*) module;
39 dev->common.close = pn544_close;
42 dev->num_eeprom_settings = 0;
43 dev->eeprom_settings = NULL;
44 dev->linktype = PN544_LINK_TYPE_INVALID;
45 dev->device_node = NULL;
46 dev->enable_i2c_workaround = 0;
47 dev->i2c_device_address = 0;
49 *device = (hw_device_t*) dev;