MCPcopy Create free account

hub / github.com/Flowtter/py-acr122u / functions

Functions53 in github.com/Flowtter/py-acr122u

↓ 17 callersMethodcommand
send a payload to the reader Format: CLA INS P1 P2 P3 Lc Data Le The Le field (optional) indicates the maximum length of
src/py122u/nfc.py:49
↓ 6 callersMethodset_picc_bit
set a PICC bit to update the PICC operating parameter as described in section 6.5 of API-ACR122U-2.02.pdf Attributes: bit
src/py122u/nfc.py:301
↓ 3 callersMethodin_auto_poll
this command is used to poll card(s) / target(s) of specified Type present in the RF field. docs: https://www.nxp.com/docs/en
src/py122u/nfc.py:405
↓ 3 callersMethodtransmit
send a payload to the chip Attributes: payload: the payload to send Returns: the response fr
src/py122u/nfc.py:371
↓ 2 callersMethodbuzzer_sound
set the buzzer sound state Attributes: poll buzz status : 0x00 ~ 0xFF Example: 0x00
src/py122u/nfc.py:259
↓ 1 callersMethodauthentication
authentication with the key in `load_authentication_data` Attributes: block number : 1 byte key type A/B : 0x60 ~ 0x6
src/py122u/nfc.py:132
↓ 1 callersMethodcommand
send a command to the chip Attributes: mode: key value of option.pn532_options arguments: replace `-1` in
src/py122u/nfc.py:383
↓ 1 callersMethodconnect
connect to the card only works if a card is on the reader
src/py122u/nfc.py:37
↓ 1 callersMethoddirect_transmit
send the payload to the tag or reader. using this you can send messages directly to the PN532 chip doc available here: https://www.nxp
src/py122u/nfc.py:279
↓ 1 callersMethodget_picc_version
get the PICC version of the reader
src/py122u/nfc.py:245
↓ 1 callersMethodinfo
print the type of the card on the reader
src/py122u/nfc.py:333
↓ 1 callersMethodinstantiate_reader
()
src/py122u/nfc.py:22
↓ 1 callersMethodled_control
control led state Attributes: led state control : 0x00 - 0x0F T1 led Duration T2 led Duration
src/py122u/nfc.py:229
↓ 1 callersMethodload_authentication_data
load the authentication key Attributes: key location : 0x00 ~ 0x01 key value : 6 bytes Example:
src/py122u/nfc.py:121
↓ 1 callersFunctionread
(r, position, number)
example/write_and_read.py:21
↓ 1 callersFunctionread_16
(r, position, number)
example/write_and_read.py:30
↓ 1 callersMethodread_binary_blocks
read n bytes in the card at the block_number index Attributes: block number : 1 byte number of Bytes to read : 1
src/py122u/nfc.py:144
↓ 1 callersMethodset_picc_version
set the PICC version of the reader Attributes: PICC value: 1 byte, default is 0xFF Example: 0xFF
src/py122u/nfc.py:249
↓ 1 callersMethodupdate_binary_blocks
update n bytes in the card with block_data at the block_number index Attributes: block number : 1 byte number of Byte
src/py122u/nfc.py:157
↓ 1 callersFunctionwrite
(r, position, number, data)
example/write_and_read.py:10
↓ 1 callersFunctionwrite_16
(r, position, number, data)
example/write_and_read.py:17
Method__init__
(self, message)
src/py122u/error.py:14
Method__init__
(self, message)
src/py122u/error.py:25
Method__init__
(self, message)
src/py122u/error.py:36
Method__init__
(self, message)
src/py122u/error.py:47
Method__init__
(self, message)
src/py122u/error.py:58
Method__init__
create an ACR122U object doc available here: http://downloads.acs.com.hk/drivers/en/API-ACR122U-2.02.pdf
src/py122u/nfc.py:15
Method__init__
create a PN532 object Attributes: acr122u: the reader used to communicate with the chip (i.e. the reader the chip is in)
src/py122u/nfc.py:363
Methodcreate_value_block
Create value block at given block number with given 4-byte signed long integer value Attributes: block number : 1 byte
src/py122u/nfc.py:172
Methodcustom
send a custom payload to the reader Format: CLA INS P1 P2 P3 Lc Data Le
src/py122u/nfc.py:95
Methoddecrement_value_block
Decrement value block at given block number with given 4byte signed long integer value Attributes: block number : 1 byte
src/py122u/nfc.py:196
Methodfirmware_version
get the firmware version of the reader
src/py122u/nfc.py:117
Methodget_uid
get the uid of the card
src/py122u/nfc.py:113
Methodincrement_value_block
Increment value block at given block number with given 4-byte signed long integer value Attributes: block number : 1 byte
src/py122u/nfc.py:184
Functionint_list_to_hexadecimal_list
(data)
src/py122u/utils.py:1
Functionint_list_to_string_list
(data)
src/py122u/utils.py:5
Methodmute_buzzer
mute the buzzer for when a card is scanned
src/py122u/nfc.py:321
Methodprint_data
(data)
src/py122u/nfc.py:346
Methodprint_sw1_sw2
(sw1, sw2)
src/py122u/nfc.py:354
Methodread_value_block
Read value block at given block number Attributes: block number : 1 byte (0-63) Example: 0x01
src/py122u/nfc.py:208
Functionreader
(mocker)
tests/in_auto_poll_test.py:7
Functionreplace_arguments
(data, arguments)
src/py122u/utils.py:9
Methodreset_lights
turn the red and green LED off
src/py122u/nfc.py:329
Methodrestore_value_block
Copies a value from a value block to another value block Attributes: source_block_number : 1 byte, source block number (0-63)
src/py122u/nfc.py:218
Methodset_auto_polling
enable or disable Auto PICC Polling Attributes: enabled: True to enable, False to disable
src/py122u/nfc.py:292
Methodset_timeout
set the timeout of the reader Attributes: timeout parameter : 0x00 ~ 0x01 - 0xFE ~ 0xFF : (0, 5 second unit, infinite), default
src/py122u/nfc.py:269
Functiontest_in_aut_poll_commands
(transmitted, poll_nr, period, type1, reader, mocker)
tests/in_auto_poll_test.py:21
Functiontest_in_aut_poll_commands_even_more_types
( transmitted, poll_nr, period, type1, type2, type3, reader, mocker )
tests/in_auto_poll_test.py:59
Functiontest_in_aut_poll_commands_more_types
( transmitted, poll_nr, period, type1, type2, reader, mocker )
tests/in_auto_poll_test.py:41
Functiontest_picc_bit_range_fail
(bit, mocker)
tests/set_picc_bit_test.py:19
Functiontest_picc_bit_range_pass
(bit, mocker)
tests/set_picc_bit_test.py:8
Functiontest_picc_bit_set_bit
(old_picc, bit, value, new_picc, mocker)
tests/set_picc_bit_test.py:44
Methodunmute_buzzer
unmute the buzzer for when a card is scanned
src/py122u/nfc.py:325