BLE TX pending queue 확장 및 ADC 패킷 재시도 처리, Ver116 업데이트
- BLE TX pending slot을 1개에서 8개로 확장 - dr_binary_tx_safe()에서 TX 결과 반환 - maa_async TX 실패 시 상태 유지 후 TX ready에서 재시도
This commit is contained in:
@@ -29,7 +29,7 @@ extern uint8_t ble_bin_buffer[];
|
||||
extern void single_format_data(uint8_t *buffer, const char *tag, uint16_t value);
|
||||
extern void ascii_format_data(uint8_t *buffer, const char *tag, const char *ascii, size_t length);
|
||||
extern void format_data(uint8_t *buffer, const char *tag, const uint16_t *data_array, size_t length);
|
||||
extern void dr_binary_tx_safe(const uint8_t *buffer, uint16_t length); /* length: word count */
|
||||
extern uint32_t dr_binary_tx_safe(const uint8_t *buffer, uint16_t length); /* length: word count */
|
||||
extern void dr_sd_delay_ms(uint32_t ms);
|
||||
extern volatile bool data_tx_in_progress;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
extern void single_format_data(uint8_t *buffer, const char *tag, uint16_t value);
|
||||
extern void format_data(uint8_t *buffer, const char *tag, uint16_t *data, uint8_t length);
|
||||
extern uint8_t ble_bin_buffer[];
|
||||
extern void dr_binary_tx_safe(uint8_t const *ble_bin_buff, uint16_t length);
|
||||
extern uint32_t dr_binary_tx_safe(uint8_t const *ble_bin_buff, uint16_t length);
|
||||
|
||||
void dr_ble_return_1(const char *tag, uint16_t value)
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
typedef struct {
|
||||
void (*log)(const char *fmt, ...);
|
||||
void (*tx_bin)(const uint8_t *buf, uint16_t len); /* len: word (uint16) count */
|
||||
uint32_t (*tx_bin)(const uint8_t *buf, uint16_t len); /* len: word (uint16) count */
|
||||
bool crc_check;
|
||||
} dr_platform_if_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user