libpebble2.util package

libpebble2.util.bundle module

class libpebble2.util.bundle.PebbleBundle(bundle_path, hardware=0)

Bases: object

MANIFEST_FILENAME = 'manifest.json'
MAX_COMPATIBILITY_VERSIONS = {'diorite': {'': 22, 'aplite/': 80}, 'basalt': {'': 22}, 'emery': {'': 22, 'basalt/': 84}}
PLATFORM_PATHS = {'aplite': ('aplite/', ''), 'unknown': ('',), 'emery': ('emery/', 'basalt/', ''), 'basalt': ('basalt/', ''), 'chalk': ('chalk/',), 'diorite': ('diorite/', 'aplite/', '')}
STRUCT_DEFINITION = ['8s', '2B', '2B', '2B', 'H', 'I', 'I', '32s', '32s', 'I', 'I', 'I', 'I', '16s']
UNIVERSAL_FILES = set(['pebble-js-app.js', 'appinfo.json'])
close()
get_app_metadata()
get_app_path()
get_application_info()
get_firmware_info()
get_manifest()
get_real_path(path)
get_resource_path()
get_resources_info()
get_worker_info()
get_worker_path()
has_javascript
has_resources
has_worker
is_app_bundle
is_firmware_bundle
classmethod prefixes_for_hardware(hardware)
should_permit_install()

libpebble2.util.hardware module

class libpebble2.util.hardware.PebbleHardware

Bases: object

BIANCA = 6
BOBBY_SMILES = 10
PLATFORMS = {0: 'unknown', 1: 'aplite', 2: 'aplite', 3: 'aplite', 4: 'aplite', 5: 'aplite', 6: 'aplite', 7: 'basalt', 8: 'basalt', 9: 'chalk', 10: 'basalt', 11: 'chalk', 12: 'diorite', 13: 'emery', 14: 'diorite', 248: 'diorite', 249: 'emery', 250: 'diorite', 251: 'chalk', 252: 'basalt', 253: 'basalt', 254: 'aplite', 255: 'aplite'}
ROBERT_BB = 249
ROBERT_EVT = 13
SILK = 14
SILK_BB = 250
SILK_BB2 = 248
SILK_EVT = 12
SNOWY_BB = 253
SNOWY_BB2 = 252
SNOWY_DVT = 8
SNOWY_EVT2 = 7
SPALDING = 11
SPALDING_BB2 = 251
SPALDING_EVT = 9
TINTIN_BB = 255
TINTIN_BB2 = 254
TINTIN_EV1 = 1
TINTIN_EV2 = 2
TINTIN_EV2_3 = 3
TINTIN_EV2_4 = 4
TINTIN_V1_5 = 5
UNKNOWN = 0
classmethod hardware_platform(hardware)

libpebble2.util.stm32_crc module

libpebble2.util.stm32_crc.crc32(data)
libpebble2.util.stm32_crc.process_buffer(buf, c=4294967295)
libpebble2.util.stm32_crc.process_word(data, crc=4294967295)