Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(BLE): HCI Docs Integrated #813

Merged
merged 18 commits into from
Dec 8, 2023
Merged

docs(BLE): HCI Docs Integrated #813

merged 18 commits into from
Dec 8, 2023

Conversation

EricB-ADI
Copy link
Contributor

Description

Integrated HCI docs into main cordio doc

@github-actions github-actions bot added the BLE Related to Bluetooth label Nov 28, 2023
Copy link
Contributor

@Jake-Carter Jake-Carter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EricB-ADI I fixed some minor formatting errors. Make sure you've got an empty line above and below each table, otherwise they'll get misformatted.

In general I think the formatting could use a little more work, it's a little hard to read and parse the info. Some images/diagrams would improve it I think

HCI.pdf

@EricB-ADI
Copy link
Contributor Author

@Jake-Carter It was autogenerated from a word doc, so I will have to manually fix a bunch. Do you have any suggestions for formatting?

Copy link
Contributor

@Jake-Carter Jake-Carter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EricB-ADI here are some more detailed formatting suggestions

Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
| ------- | ---------------------------------------------- | --------------- | ---------- |
| 0x300 | 5 + N, where N is the number of bytes to write | Length, Address | Status |
| |
#### Description
Copy link
Contributor

@Jake-Carter Jake-Carter Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest getting rid of the "Description" and "Return" headers completely. Put the description and return right under the main header.

I'd also suggest noting the packet type (even though they're all the same) and adding curly braces around the parameters to indicate they're an in-order sequence.

Ex:

### Write Memory

Write N bytes to a specified 32-bit address.

Returns a status byte.

Packet type:  Command Packet

|**OGF**| **OCF** | ** Length (bytes) ** | *  *Parameters**    | **Return** |
| ----- | ------- | -------------------  | ------------------- | ---------- |
| 0x3F  | 0x300   |   5 + N              | {Length, Address}   | Status     |

_where N is the number of bytes to write_

#### Parameters

...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also... shouldn't the data bytes you want to send be a parameter for this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand this case, but some return a lot of data. For consistency I kept the section. You seem to have more experience, so I can hybridize the approach if you think its better.

Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
Libraries/Cordio/docs/Tooling/HOST_CONTROLLER_INTERFACE.md Outdated Show resolved Hide resolved
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Dec 8, 2023
@Jake-Carter
Copy link
Contributor

Thanks @EricB-ADI just did some more updates to the formatting. After going through the whole thing I agree with your points above.

FYI I also consolidated into the primary Cordio UG markdown file. I know it would be ideal to compartmentalize into separate files, but getting the nav bar working is more important.

image

@EricB-ADI
Copy link
Contributor Author

@Jake-Carter Thank you very much sir. FYI there will be a lot more docs being added as we create more tools in the coming months.

@EricB-ADI EricB-ADI merged commit c778ca3 into main Dec 8, 2023
8 checks passed
@EricB-ADI EricB-ADI deleted the vs-hci-docs branch December 8, 2023 18:40
@EricB-ADI EricB-ADI restored the vs-hci-docs branch December 8, 2023 21:57
@EricB-ADI EricB-ADI deleted the vs-hci-docs branch April 16, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLE Related to Bluetooth documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants