Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jul 22, 2017
1 parent a2685ea commit 58e3da2
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions docs/tbfh.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,41 @@ def __init__(self, buffer)
Initialize self. See help(type(self)) for accurate signature.


### get\_app\_size
### get\_app\_name
```py

def get_app_size(self)
def get_app_name(self)

```



Get the total size the app takes in bytes in the flash of the chip.


### get\_binary
```py

def get_binary(self)

```
Return the package name if it was encoded in the header, otherwise
return a tuple of (package_name_offset, package_name_size).



Get the TBF header in a bytes array.


### get\_name\_length
### get\_app\_size
```py

def get_name_length(self)
def get_app_size(self)

```



Get the number of bytes for the application name.
Get the total size the app takes in bytes in the flash of the chip.


### get\_name\_offset
### get\_binary
```py

def get_name_offset(self)
def get_binary(self)

```



Get the offset in the application binary where the application name is.
Get the TBF header in a bytes array.


### is\_enabled
Expand Down Expand Up @@ -130,7 +119,7 @@ Return str(self).
### \_checksum
```py

def _checksum(self)
def _checksum(self, buffer)

```

Expand Down

0 comments on commit 58e3da2

Please sign in to comment.