mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 00:21:44 +01:00 
			
		
		
		
	ping: refactor with new esp_ping_xxx APIs
This refactor is only for backwards compatible.
This commit is contained in:
		@@ -42,7 +42,6 @@ typedef struct _ping_found {
 | 
			
		||||
    uint32_t total_time;
 | 
			
		||||
    uint32_t min_time;
 | 
			
		||||
    uint32_t max_time;
 | 
			
		||||
    uint32_t ping_seqno;
 | 
			
		||||
    int8_t  ping_err;
 | 
			
		||||
} esp_ping_found;
 | 
			
		||||
 | 
			
		||||
@@ -60,7 +59,7 @@ typedef enum {
 | 
			
		||||
 | 
			
		||||
typedef enum {
 | 
			
		||||
    PING_RES_TIMEOUT = 0,
 | 
			
		||||
    PING_RES_OK      = 1, 
 | 
			
		||||
    PING_RES_OK      = 1,
 | 
			
		||||
    PING_RES_FINISH  = 2,
 | 
			
		||||
} ping_res_t;
 | 
			
		||||
 | 
			
		||||
@@ -103,7 +102,7 @@ esp_err_t esp_ping_get_target(ping_target_id_t opt_id, void *opt_val, uint32_t o
 | 
			
		||||
 *      - ESP_OK
 | 
			
		||||
 *      - ESP_ERR_PING_INVALID_PARAMS
 | 
			
		||||
 */
 | 
			
		||||
esp_err_t esp_ping_result(uint8_t res_val, uint16_t res_len, uint32_t res_time, uint32_t seqno);
 | 
			
		||||
esp_err_t esp_ping_result(uint8_t res_val, uint16_t res_len, uint32_t res_time);
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user