Class: NFC::Device::Modulation
- Inherits:
-
Object
- Object
- NFC::Device::Modulation
- Defined in:
- ext/nfc/nfc_device.c
Constant Summary collapse
- NMT_ISO14443A =
modulation types.
INT2NUM(NMT_ISO14443A)
- NMT_FELICA =
INT2NUM(NMT_FELICA)
- NBR_UNDEFINED =
baud rates
INT2NUM(NBR_UNDEFINED)
- NBR_106 =
INT2NUM(NBR_106)
- NBR_212 =
INT2NUM(NBR_212)
Instance Method Summary collapse
Constructor Details
#initialize(type, baud) ⇒ Object
108 109 110 111 112 113 114 115 116 117 |
# File 'ext/nfc/nfc_device.c', line 108
static VALUE mod_initialize(VALUE self, VALUE type, VALUE baud)
{
nfc_modulation * mod;
Data_Get_Struct(self, nfc_modulation, mod);
mod->nmt = NUM2INT(type);
mod->nbr = NUM2INT(baud);
return self;
}
|
Instance Method Details
#nbr ⇒ Object
137 138 139 140 141 142 143 144 |
# File 'ext/nfc/nfc_device.c', line 137
static VALUE mod_nbr(VALUE self)
{
nfc_modulation * mod;
Data_Get_Struct(self, nfc_modulation, mod);
return INT2NUM(mod->nbr);
}
|
#nmt ⇒ Object
128 129 130 131 132 133 134 135 |
# File 'ext/nfc/nfc_device.c', line 128
static VALUE mod_nmt(VALUE self)
{
nfc_modulation * mod;
Data_Get_Struct(self, nfc_modulation, mod);
return INT2NUM(mod->nmt);
}
|