protocol_prv.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /* Copyright 2020-2023 Espressif Systems (Shanghai) CO LTD
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #pragma once
  16. #include <stdint.h>
  17. #include <stdbool.h>
  18. #include <stddef.h>
  19. #include "esp_loader.h"
  20. #include "protocol.h"
  21. void log_loader_internal_error(error_code_t error);
  22. esp_loader_error_t send_cmd(const void *cmd_data, uint32_t size, uint32_t *reg_value);
  23. esp_loader_error_t send_cmd_with_data(const void *cmd_data, size_t cmd_size,
  24. const void *data, size_t data_size);
  25. esp_loader_error_t send_cmd_md5(const void *cmd_data, size_t cmd_size, uint8_t md5_out[MD5_SIZE]);