bluetooth/uuid_ninafw.go
deadprogram 92c12af54f ninafw: BLE central implementation on nina-fw co-processors
Signed-off-by: deadprogram <ron@hybridgroup.com>
2024-01-04 14:35:20 +01:00

21 lines
386 B
Go

//go:build ninafw
package bluetooth
type shortUUID uint16
// UUID returns the full length UUID for this short UUID.
func (s shortUUID) UUID() UUID {
return New16BitUUID(uint16(s))
}
// isIn checks the passed in slice of UUIDs to see if this uuid is in it.
func (uuid UUID) isIn(uuids []UUID) bool {
for _, u := range uuids {
if u == uuid {
return true
}
}
return false
}