Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bennington-hardware-hacking-2019/pos_system
/ functions
Functions
123 in github.com/bennington-hardware-hacking-2019/pos_system
⨍
Functions
123
◇
Types & classes
18
↳
Endpoints
16
↓ 20 callers
Method
close
Close the i2c connection.
tag_reader/smbus2/smbus2/smbus2.py:284
↓ 16 callers
Method
create
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 callers
Method
_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 callers
Method
setup
FIXME
db/api.py:14
↓ 4 callers
Method
sim_read
FIXME - simulate reading, only used for testing purposes
tag_reader/api.py:102
↓ 3 callers
Method
get_buyer
get buyer information from card returns a dictionary buyer object
db/api.py:75
↓ 3 callers
Method
read
return a raw reading value as an array of bytes
tag_reader/api.py:48
↓ 3 callers
Method
read_addr
read from its own address a given-length of block data
tag_reader/api.py:84
↓ 3 callers
Method
write
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 callers
Method
__bytes__
(self)
tag_reader/smbus2/smbus2/smbus2.py:145
↓ 2 callers
Function
construct_frame
construct frame for communicating between host controller and pn532
tag_reader/api.py:115
↓ 2 callers
Method
get_item
get item information from tag returns an item dictionary
db/api.py:125
↓ 2 callers
Method
get_items
get items from tags returns an array of item dictionaries
db/api.py:115
↓ 2 callers
Method
make_sale
create a sale of items returns a sale dictionary
db/api.py:343
↓ 2 callers
Method
read
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 callers
Method
read_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 callers
Function
read_file
(fname, encoding='utf-8')
tag_reader/smbus2/setup.py:10
↓ 2 callers
Method
read_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 callers
Method
read_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 callers
Method
sim_setup
FIXME - simulate setup, only used for testing purposes
tag_reader/api.py:98
↓ 2 callers
Method
write_addr
write to its own address with given block data
tag_reader/api.py:77
↓ 1 callers
Method
__next__
(self)
tag_reader/smbus2/smbus2/smbus2.py:239
↓ 1 callers
Method
_get_funcs
Returns a 32-bit value stating supported I2C functions. :rtype: int
tag_reader/smbus2/smbus2/smbus2.py:310
↓ 1 callers
Method
add_buyer
add buyer name, email and card returns True
db/api.py:95
↓ 1 callers
Method
add_item
adds an item to the DB (for admin) returns true if successful
db/api.py:223
↓ 1 callers
Method
check_card
check if the card exists in the db
db/api.py:21
↓ 1 callers
Method
check_item
check if an item is in stock (admin)
db/api.py:33
↓ 1 callers
Method
create_charge
create a charge and return its id
payment_processor/api.py:32
↓ 1 callers
Method
edit_item
edits an item in the DB (for admin) returns true if successful
db/api.py:254
↓ 1 callers
Function
find_version
(*file_paths)
tag_reader/smbus2/setup.py:15
↓ 1 callers
Method
get_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 callers
Method
get_item_by_index
get item information from index returns an item dictionary
db/api.py:146
↓ 1 callers
Method
get_sold
get all the sold items returns an array of item dictionaries
db/api.py:187
↓ 1 callers
Method
get_stock
get all in stock items returns an array of item dictionaries
db/api.py:165
↓ 1 callers
Method
hold_item
removes an item from stock but doesn't delete it (for admin) returns true if successful
db/api.py:272
↓ 1 callers
Method
i2c_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 callers
Method
in_list_passive_target
send InListPassiveTarget command
tag_reader/api.py:69
↓ 1 callers
Method
is_paid
return charnge status whether is is paid or not
payment_processor/api.py:48
↓ 1 callers
Method
open
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 callers
Method
sam_config
send SAMConfiguration command
tag_reader/api.py:61
↓ 1 callers
Method
sell_item
add sale_index to item returns a boolean
db/api.py:316
↓ 1 callers
Method
sell_items
add sale_index to items returns a boolean
db/api.py:307
↓ 1 callers
Method
setup
FIXME
payment_processor/api.py:10
↓ 1 callers
Method
stock_item
moves an item to stock (for admin) returns true if successful
db/api.py:289
↓ 1 callers
Method
use_logging
use debug logging
tag_reader/api.py:36
↓ 1 callers
Function
validate_tag
keep reading for nfc tag item, validate, send it back to the ui
server/api.py:309
↓ 1 callers
Method
write_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
Function
about
()
server/api.py:147
Function
add
()
server/api.py:227
Method
block_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
Function
buyer
()
server/api.py:288
Function
card
()
server/static/buyer.js:11
Function
cart_request
(payload)
server/api.py:44
Method
check_sale
check if the sale has been paid
db/api.py:54
Function
checkout
()
server/api.py:139
Function
checkout
()
server/static/cart.js:114
Function
checkout_request
(payload)
server/api.py:49
Method
create
(read_write=I2C_SMBUS_READ, command=0, size=I2C_SMBUS_BYTE_DATA)
tag_reader/smbus2/smbus2/smbus2.py:118
Function
edit
(index)
server/api.py:247
Method
get_balance
get stripe account balance
payment_processor/api.py:24
Method
get_balance_history
get stripe balance history
payment_processor/api.py:28
Method
get_charge
return a charnge
payment_processor/api.py:52
Method
get_charges
get a list of charges
payment_processor/api.py:44
Method
get_sale
get sale information for a given index returns a sale dictionary
db/api.py:365
Method
get_unpaid
get unpaid sales returns an array of sale dictionaries
db/api.py:383
Function
held
()
server/api.py:213
Function
help
()
server/api.py:143
Function
hold
(index)
server/api.py:270
Function
index
()
server/api.py:128
Function
items
()
server/api.py:206
Function
login
()
server/api.py:182
Function
logout
()
server/api.py:200
Function
mock_close
(*args)
tag_reader/smbus2/tests/test_smbus2.py:57
Function
mock_ioctl
(fd, command, msg)
tag_reader/smbus2/tests/test_smbus2.py:61
Function
mock_open
(*args)
tag_reader/smbus2/tests/test_smbus2.py:52
Method
next
(self)
tag_reader/smbus2/smbus2/smbus2.py:247
Function
on_cart
()
server/api.py:135
Function
pay
()
server/api.py:151
Method
process_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
Method
read
return the card reading value as an integer format
card_reader/api.py:31
Method
read_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
Method
read_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
Function
remove
()
server/static/cart.js:77
Method
send_invoice
send invoice
payment_processor/api.py:15
Method
setup
set data pin to input pin
card_reader/api.py:23
Method
setup
setup the device
tag_reader/api.py:28
Function
sim_add
()
server/static/cart.js:87
next →
1–100 of 123, ranked by callers