Skip to content

BLE: Gap platform abstraction layer #5295

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

Merged
merged 2 commits into from
Nov 9, 2017

Conversation

pan-
Copy link
Member

@pan- pan- commented Oct 11, 2017

Description

Add an interface exposing the primitives needed to realize operations defined in
the GAP layer. Data types, event and function definitions follow closely HCI
commands and events defined in the Bluetooth specification.

This adapter shall be implemented by porters if they want to use the generic
implementation of the Gap implementation.

Status

READY

Migrations

NO

@pan-
Copy link
Member Author

pan- commented Oct 11, 2017

@marcbonnici @nvlsianpu @apalmieriGH May you review this PR ?

Other will follows containing the implementation of the GenericGAP, an abstraction managing the GAP server and the pal::Gap implementation for the Cordio stack.

@pan- pan- changed the title Gap platform abstraction layer BLE: Gap platform abstraction layer Oct 11, 2017
@mbed-ci
Copy link

mbed-ci commented Oct 11, 2017

Build : SUCCESS

Build number : 114
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5295/

Triggering tests

/test mbed-os

@mbed-ci
Copy link

mbed-ci commented Oct 11, 2017

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 12, 2017

@tommikas Can you restart jenkins CI please here?

* Construct a new GapConnectionCompleteEvent.
*
* @param status Status of the operation: 0x00 in case of success otherwise
* the error code associated with the faillure.

Choose a reason for hiding this comment

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

'faillure' is misspelt



/**
* Report advertising from on or more LE device.

Choose a reason for hiding this comment

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

on -> one

/**
* Construct advertising data from an array.
*
* @param input_value Reference to the array containing the advertising dat

Choose a reason for hiding this comment

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

*data

* or RESOLVABLE_PRIVATE_ADDRESS_RANDOM_FALLBACK then the peer address
* parameters (type and address) will be used to find the local IRK.
*
* @param peer_address_type Address type of the peer.sw

Choose a reason for hiding this comment

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

Additional sw

* - A connection is created.
* - Time out in case of high duty cycle directed advertising.
*
* If the random address as not been set and the advertising parameter

Choose a reason for hiding this comment

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

*has not been

* If the random address as not been set and the advertising parameter
* own_address_type is set to 0x01 then the procedure shall fail.
*
* If the random address as not been set and the advertising parameter

Choose a reason for hiding this comment

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

*has

Choose a reason for hiding this comment

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

This still needs correcting.

* if initiator_policy use the whitelist.
*
* @param Address used by the advertiser in its advertising packets. Not
* usedif initiator_policy use the whitelist.

Choose a reason for hiding this comment

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

*used if

* @note The value returned can change over time.
*
* @return The number of entries that can be stored in the LE subsystem. It
* range from 0x01 tp 0xFF.

Choose a reason for hiding this comment

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

*to

@pan- pan- force-pushed the GAP-platform-abstraction-layer branch from c7ceb0b to 11c0f93 Compare October 12, 2017 09:40
@mbed-ci
Copy link

mbed-ci commented Oct 12, 2017

Build : SUCCESS

Build number : 141
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5295/

Triggering tests

/test mbed-os

@pan- pan- force-pushed the GAP-platform-abstraction-layer branch from 11c0f93 to 2b80876 Compare October 15, 2017 15:44
@adbridge
Copy link
Contributor

"@marcbonnici @nvlsianpu @apalmieriGH May you review this PR ?"
Any further update on this ? Looks like it needs re-review?

@pan-
Copy link
Member Author

pan- commented Oct 16, 2017

I updated the PR according to @marcbonnici comments.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 19, 2017

@marcbonnici - approved?

* If the random address has not been set and the advertising parameter
* own_address_type is set to 0x01 then the procedure shall fail.
*
* If the random address as not been set and the advertising parameter
Copy link

@marcbonnici marcbonnici Oct 19, 2017

Choose a reason for hiding this comment

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

This still needs correcting.
"as" -> "has"

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 19, 2017

Anyone else for review?

@theotherjimmy
Copy link
Contributor

@pan- Could you correct the typo? then we can get this show on the road.

@adbridge
Copy link
Contributor

@pan- Could you please address the comments

This interface expose the primitives needed to realize operations defined in
the GAP layer. Data types, event and function definitions follow closely HCI
commands and events defined in the Bluetooth specification.
@pan- pan- force-pushed the GAP-platform-abstraction-layer branch from 2b80876 to 744abca Compare October 31, 2017 17:42
@pan-
Copy link
Member Author

pan- commented Oct 31, 2017

@adbridge I've addressed the comments.

@theotherjimmy
Copy link
Contributor

@studavekar did these build and test triggers get dropped?

@studavekar
Copy link
Contributor

@theotherjimmy i don't see a morph command for 744abca.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 3, 2017

/morph build

@mbed-ci
Copy link

mbed-ci commented Nov 4, 2017

Build : SUCCESS

Build number : 434
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5295/

Triggering tests

/morph test
/morph uvisor-test

@mbed-ci
Copy link

mbed-ci commented Nov 4, 2017

@studavekar
Copy link
Contributor

/morph test

@mbed-ci
Copy link

mbed-ci commented Nov 8, 2017

@0xc0170 0xc0170 merged commit 82f5b58 into ARMmbed:master Nov 9, 2017
@pan- pan- deleted the GAP-platform-abstraction-layer branch July 3, 2018 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants