CC26xxR2OADProxy class
CC2640 R2 OAD
- 片内片外都无需判断A/B类型;
- APP无需计算校验码,升级时发送的头数据直接从.bin文件取;
- 模块通过TI_OAD_Image_Block通道请求第一笔数据时APP才发送文件数据(片外升级需等待底层擦除flash, 该方式兼容片内升级)。
since v0.0.7
- Inheritance
- Mixed-in types
Constructors
- CC26xxR2OADProxy.new(OADListener listener)
Properties
-
fileBuffer
→ List<
int> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- mListener ↔ OADListener?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ OADState
-
getter/setter pairinherited
- type → OADType
-
finalinherited
Methods
-
isProgramming(
) → bool -
是否正在升级
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBluetoothStateChanged(
BluetoothState state) → void -
inherited
-
onConnected(
String deviceId) → void -
inherited
-
onConnectionError(
String deviceId, int error) → void -
inherited
-
onConnectionUpdated(
String deviceId, int interval, int latency, int timeout, int status) → void -
连接参数更新(仅Android)
inherited
-
onConnectTimeout(
String deviceId) → void -
inherited
-
onDataReceived(
String deviceId, String serviceUuid, String characteristicUuid, Uint8List data) → void -
override
-
onDataSend(
String deviceId, String serviceUuid, String characteristicUuid, Uint8List? data, int status) → void -
数据发送结果的回调(仅Android)
override
-
onDisconnected(
String deviceId) → void -
override
-
onLeScan(
BLEDevice device) → void -
inherited
-
onMtuChanged(
String deviceId, int mtu) → void -
override
-
onNotificationStateChanged(
String deviceId, String serviceUuid, String characteristicUuid, bool enabled, String? error) → void -
override
-
onReadRssi(
String deviceId, int rssi, int status) → void -
读取RSSI的异步回调
inherited
-
onScanStart(
) → void -
inherited
-
onScanStop(
) → void -
inherited
-
prepare(
String deviceId, String filepath, bool isAssets) → void -
准备就绪后会回调{@link OADListener#onPrepared(String)}
override
-
release(
) → void -
不再使用时释放资源
override
-
startProgramming(
int sendInterval) → void -
开始OAD升级
override
-
stopProgramming(
) → void -
停止升级
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited