MCPcopy Create free account

hub / github.com/bennington-hardware-hacking-2019/pos_system / functions

Functions123 in github.com/bennington-hardware-hacking-2019/pos_system

↓ 20 callersMethodclose
Close the i2c connection.
tag_reader/smbus2/smbus2/smbus2.py:284
↓ 16 callersMethodcreate
Factory method for creating a i2c_rdwr_ioctl_data struct that can be called with ``ioctl(fd, I2C_RDWR, data)``. :param i2c_m
tag_reader/smbus2/smbus2/smbus2.py:211
↓ 13 callersMethod_set_address
Set i2c slave address to use for subsequent calls. :param address: :type address: int :param force: :type fo
tag_reader/smbus2/smbus2/smbus2.py:292
↓ 4 callersMethodsetup
FIXME
db/api.py:14
↓ 4 callersMethodsim_read
FIXME - simulate reading, only used for testing purposes
tag_reader/api.py:102
↓ 3 callersMethodget_buyer
get buyer information from card returns a dictionary buyer object
db/api.py:75
↓ 3 callersMethodread
return a raw reading value as an array of bytes
tag_reader/api.py:48
↓ 3 callersMethodread_addr
read from its own address a given-length of block data
tag_reader/api.py:84
↓ 3 callersMethodwrite
Prepares an i2c write transaction. :param address: Slave address. :type address: int :param buf: Bytes to write. Eit
tag_reader/smbus2/smbus2/smbus2.py:175
↓ 2 callersMethod__bytes__
(self)
tag_reader/smbus2/smbus2/smbus2.py:145
↓ 2 callersFunctionconstruct_frame
construct frame for communicating between host controller and pn532
tag_reader/api.py:115
↓ 2 callersMethodget_item
get item information from tag returns an item dictionary
db/api.py:125
↓ 2 callersMethodget_items
get items from tags returns an array of item dictionaries
db/api.py:115
↓ 2 callersMethodmake_sale
create a sale of items returns a sale dictionary
db/api.py:343
↓ 2 callersMethodread
Prepares an i2c read transaction. :param address: Slave address. :type: address: int :param length: Number of bytes
tag_reader/smbus2/smbus2/smbus2.py:158
↓ 2 callersMethodread_byte_data
Read a single byte from a designated register. :param i2c_addr: i2c address :type i2c_addr: int :param register: Reg
tag_reader/smbus2/smbus2/smbus2.py:368
↓ 2 callersFunctionread_file
(fname, encoding='utf-8')
tag_reader/smbus2/setup.py:10
↓ 2 callersMethodread_i2c_block_data
Read a block of byte data from a given register. :param i2c_addr: i2c address :type i2c_addr: int :param register: S
tag_reader/smbus2/smbus2/smbus2.py:546
↓ 2 callersMethodread_word_data
Read a single word (2 bytes) from a given register. :param i2c_addr: i2c address :type i2c_addr: int :param register
tag_reader/smbus2/smbus2/smbus2.py:409
↓ 2 callersMethodsim_setup
FIXME - simulate setup, only used for testing purposes
tag_reader/api.py:98
↓ 2 callersMethodwrite_addr
write to its own address with given block data
tag_reader/api.py:77
↓ 1 callersMethod__next__
(self)
tag_reader/smbus2/smbus2/smbus2.py:239
↓ 1 callersMethod_get_funcs
Returns a 32-bit value stating supported I2C functions. :rtype: int
tag_reader/smbus2/smbus2/smbus2.py:310
↓ 1 callersMethodadd_buyer
add buyer name, email and card returns True
db/api.py:95
↓ 1 callersMethodadd_item
adds an item to the DB (for admin) returns true if successful
db/api.py:223
↓ 1 callersMethodcheck_card
check if the card exists in the db
db/api.py:21
↓ 1 callersMethodcheck_item
check if an item is in stock (admin)
db/api.py:33
↓ 1 callersMethodcreate_charge
create a charge and return its id
payment_processor/api.py:32
↓ 1 callersMethodedit_item
edits an item in the DB (for admin) returns true if successful
db/api.py:254
↓ 1 callersFunctionfind_version
(*file_paths)
tag_reader/smbus2/setup.py:15
↓ 1 callersMethodget_held
get all the held items (items that aren't in stock, and aren't sold) returns an array of item dictionaries
db/api.py:206
↓ 1 callersMethodget_item_by_index
get item information from index returns an item dictionary
db/api.py:146
↓ 1 callersMethodget_sold
get all the sold items returns an array of item dictionaries
db/api.py:187
↓ 1 callersMethodget_stock
get all in stock items returns an array of item dictionaries
db/api.py:165
↓ 1 callersMethodhold_item
removes an item from stock but doesn't delete it (for admin) returns true if successful
db/api.py:272
↓ 1 callersMethodi2c_rdwr
Combine a series of i2c read and write operations in a single transaction (with repeated start bits but no stop bits in between).
tag_reader/smbus2/smbus2/smbus2.py:596
↓ 1 callersMethodin_list_passive_target
send InListPassiveTarget command
tag_reader/api.py:69
↓ 1 callersMethodis_paid
return charnge status whether is is paid or not
payment_processor/api.py:48
↓ 1 callersMethodopen
Open a given i2c bus. :param bus: i2c bus number (e.g. 0 or 1) :type bus: int
tag_reader/smbus2/smbus2/smbus2.py:274
↓ 1 callersMethodsam_config
send SAMConfiguration command
tag_reader/api.py:61
↓ 1 callersMethodsell_item
add sale_index to item returns a boolean
db/api.py:316
↓ 1 callersMethodsell_items
add sale_index to items returns a boolean
db/api.py:307
↓ 1 callersMethodsetup
FIXME
payment_processor/api.py:10
↓ 1 callersMethodstock_item
moves an item to stock (for admin) returns true if successful
db/api.py:289
↓ 1 callersMethoduse_logging
use debug logging
tag_reader/api.py:36
↓ 1 callersFunctionvalidate_tag
keep reading for nfc tag item, validate, send it back to the ui
server/api.py:309
↓ 1 callersMethodwrite_i2c_block_data
Write a block of byte data to a given register. :param i2c_addr: i2c address :type i2c_addr: int :param register: St
tag_reader/smbus2/smbus2/smbus2.py:571
Method__enter__
(self)
tag_reader/smbus2/smbus2/smbus2.py:632
Method__exit__
(self, exc_type, exc_val, exc_tb)
tag_reader/smbus2/smbus2/smbus2.py:636
Method__init__
(self)
card_reader/api.py:13
Method__init__
(self)
tag_reader/api.py:18
Method__init__
(self, msg)
tag_reader/smbus2/smbus2/smbus2.py:232
Method__init__
Initialize and (optionally) open an i2c bus connection. :param bus: i2c bus number (e.g. 0 or 1). If not given, a subsequent
tag_reader/smbus2/smbus2/smbus2.py:255
Method__init__
:param auto_cleanup: Close bus when leaving scope. :type auto_cleanup: Boolean :param force: Force using the slave address ev
tag_reader/smbus2/smbus2/smbus2.py:621
Method__init__
(self)
db/api.py:10
Method__iter__
(self)
tag_reader/smbus2/smbus2/smbus2.py:139
Method__iter__
(self)
tag_reader/smbus2/smbus2/smbus2.py:236
Method__len__
(self)
tag_reader/smbus2/smbus2/smbus2.py:142
Method__repr__
(self)
tag_reader/smbus2/smbus2/smbus2.py:148
Method__str__
(self)
tag_reader/smbus2/smbus2/smbus2.py:151
Functionabout
()
server/api.py:147
Functionadd
()
server/api.py:227
Methodblock_process_call
Executes a SMBus Block Process Call, sending a variable-size data block and receiving another variable-size response :param i2c_addr
tag_reader/smbus2/smbus2/smbus2.py:518
Functionbuyer
()
server/api.py:288
Functioncard
()
server/static/buyer.js:11
Functioncart_request
(payload)
server/api.py:44
Methodcheck_sale
check if the sale has been paid
db/api.py:54
Functioncheckout
()
server/api.py:139
Functioncheckout
()
server/static/cart.js:114
Functioncheckout_request
(payload)
server/api.py:49
Methodcreate
(read_write=I2C_SMBUS_READ, command=0, size=I2C_SMBUS_BYTE_DATA)
tag_reader/smbus2/smbus2/smbus2.py:118
Functionedit
(index)
server/api.py:247
Methodget_balance
get stripe account balance
payment_processor/api.py:24
Methodget_balance_history
get stripe balance history
payment_processor/api.py:28
Methodget_charge
return a charnge
payment_processor/api.py:52
Methodget_charges
get a list of charges
payment_processor/api.py:44
Methodget_sale
get sale information for a given index returns a sale dictionary
db/api.py:365
Methodget_unpaid
get unpaid sales returns an array of sale dictionaries
db/api.py:383
Functionheld
()
server/api.py:213
Functionhelp
()
server/api.py:143
Functionhold
(index)
server/api.py:270
Functionindex
()
server/api.py:128
Functionitems
()
server/api.py:206
Functionlogin
()
server/api.py:182
Functionlogout
()
server/api.py:200
Functionmock_close
(*args)
tag_reader/smbus2/tests/test_smbus2.py:57
Functionmock_ioctl
(fd, command, msg)
tag_reader/smbus2/tests/test_smbus2.py:61
Functionmock_open
(*args)
tag_reader/smbus2/tests/test_smbus2.py:52
Methodnext
(self)
tag_reader/smbus2/smbus2/smbus2.py:247
Functionon_cart
()
server/api.py:135
Functionpay
()
server/api.py:151
Methodprocess_call
Executes a SMBus Process Call, sending a 16-bit value and receiving a 16-bit response :param i2c_addr: i2c address :type i2c
tag_reader/smbus2/smbus2/smbus2.py:450
Methodread
return the card reading value as an integer format
card_reader/api.py:31
Methodread_block_data
Read a block of up to 32-bytes from a given register. :param i2c_addr: i2c address :type i2c_addr: int :param regist
tag_reader/smbus2/smbus2/smbus2.py:472
Methodread_byte
Read a single byte from a device. :rtype: int :param i2c_addr: i2c address :type i2c_addr: int :param force:
tag_reader/smbus2/smbus2/smbus2.py:333
Functionremove
()
server/static/cart.js:77
Methodsend_invoice
send invoice
payment_processor/api.py:15
Methodsetup
set data pin to input pin
card_reader/api.py:23
Methodsetup
setup the device
tag_reader/api.py:28
Functionsim_add
()
server/static/cart.js:87
next →1–100 of 123, ranked by callers