YMSCBUtils Class Reference
Inherits from | NSObject |
---|---|
Declared in | YMSCBUtils.h YMSCBUtils.m |
+ genCBUUID:withOffset:
Generate CBUUID string given base and offset of type yms_u128_t
+ (NSString *)genCBUUID:(yms_u128_t *)base withOffset:(yms_u128_t *)offset
Parameters
base |
base address |
---|---|
offset |
offset value |
Return Value
CBUUID string
Discussion
Generate CBUUID string given base and offset of type yms_u128_t
Declared In
YMSCBUtils.h
+ genCBUUID:withIntOffset:
Generate CBUUID string given base of type yms_u128_t and offset of type int
+ (NSString *)genCBUUID:(yms_u128_t *)base withIntOffset:(int)addrOffset
Parameters
base |
base address |
---|---|
addrOffset |
offset value |
Return Value
CBUUID string
Discussion
Generate CBUUID string given base of type yms_u128_t and offset of type int
Declared In
YMSCBUtils.h
+ createCBUUID:withOffset:
Generate CBUUID given base and offset of type yms_u128_t
+ (CBUUID *)createCBUUID:(yms_u128_t *)base withOffset:(yms_u128_t *)offset
Parameters
base |
base address |
---|---|
offset |
offset value |
Return Value
CBUUID
Discussion
Generate CBUUID given base and offset of type yms_u128_t
Declared In
YMSCBUtils.h
+ createCBUUID:withIntOffset:
Generate CBUUID given base of type yms_u128_t and offset of type int
+ (CBUUID *)createCBUUID:(yms_u128_t *)base withIntOffset:(int)addrOffset
Parameters
base |
base address |
---|---|
addrOffset |
offset value |
Return Value
CBUUID generated from base and addOffset
Discussion
Generate CBUUID given base of type yms_u128_t and offset of type int
Declared In
YMSCBUtils.h
+ genCBUUID:withIntBLEOffset:
Generate CBUUID string given base of type yms_u128_t and BLE offset of type int
+ (NSString *)genCBUUID:(yms_u128_t *)base withIntBLEOffset:(int)addrOffset
Parameters
base |
base address |
---|---|
addrOffset |
offset value |
Return Value
CBUUID string
Discussion
Generate CBUUID string given base of type yms_u128_t and BLE offset of type int
This is written to comply with the Bluetooth Specification Version 4.0, Vol. 3 Section 3.2.1 where:
128-Bit UUID = 16-bit Attribute UUID * pow(2,96) + Bluetooth_Base_UUID
Declared In
YMSCBUtils.h
+ createCBUUID:withIntBLEOffset:
Generate CBUUID given base and BLE offset of type yms_u128_t
+ (CBUUID *)createCBUUID:(yms_u128_t *)base withIntBLEOffset:(int)addrOffset
Parameters
base |
base address |
---|---|
addrOffset |
offset value |
Return Value
CBUUID
Discussion
Generate CBUUID given base and BLE offset of type yms_u128_t
This is written to comply with the Bluetooth Specification Version 4.0, Vol. 3 Section 3.2.1 where:
128-Bit UUID = 16-bit Attribute UUID * pow(2,96) + Bluetooth_Base_UUID
Declared In
YMSCBUtils.h
+ dataToByte:
Convert data to byte
+ (int8_t)dataToByte:(NSData *)data
Parameters
data |
data to convert |
---|
Return Value
8-bit integer
Discussion
Convert data to byte
Declared In
YMSCBUtils.h
+ dataToInt16:
Convert data to 16-bit integer
+ (int16_t)dataToInt16:(NSData *)data
Parameters
data |
data to convert |
---|
Return Value
16-bit integer
Discussion
Convert data to 16-bit integer
Declared In
YMSCBUtils.h
+ dataToInt32:
Convert data to 32-bit integer
+ (int32_t)dataToInt32:(NSData *)data
Parameters
data |
data to convert |
---|
Return Value
32-bit integer
Discussion
Convert data to 32-bit integer
Declared In
YMSCBUtils.h