E104-BT5005A.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //
  2. // Created by EDZ on 25-8-28.
  3. //
  4. #include "E104-BT5005A.h"
  5. #include "stdio.h"
  6. #include "main.h"
  7. #include <time.h>
  8. #include <stdlib.h>
  9. #include "string.h"
  10. #include "E104-BT5005A.h"
  11. void E104_BT5005A_ROLE1_Fun(void) {
  12. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_ROLE_1, strlen(E104_BT5005A_ROLE_1), HAL_MAX_DELAY);
  13. }
  14. void E104_BT5005A_ROLE2_Fun(void) {
  15. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_ROLE_2, strlen(E104_BT5005A_ROLE_2), HAL_MAX_DELAY);
  16. }
  17. void E104_BT5005A_SCANINTV_Fun(void) {
  18. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_SCANINTV, strlen(E104_BT5005A_SCANINTV), HAL_MAX_DELAY);
  19. }
  20. void E104_BT5005A_RESET_Fun(void) {
  21. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_RESET, strlen(E104_BT5005A_RESET), HAL_MAX_DELAY);
  22. }
  23. void E104_BT5005A_SLEEP_Fun(void) {
  24. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_SLEEP, strlen(E104_BT5005A_SLEEP), HAL_MAX_DELAY);
  25. }
  26. void E104_BT5005A_WAKE_UP_Fun(void) {
  27. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_WAKE_UP, strlen(E104_BT5005A_WAKE_UP), HAL_MAX_DELAY);
  28. }
  29. void E104_BT5005A_SCANWND_Fun(void) {
  30. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_SCANWND, strlen(E104_BT5005A_SCANWND), HAL_MAX_DELAY);
  31. }
  32. void E104_BT5005A_ADV_Fun() {
  33. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_ADV, strlen(E104_BT5005A_ADV), HAL_MAX_DELAY);
  34. }
  35. void E104_BT5005A_NAME_Fun(void) {
  36. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_NAME, strlen(E104_BT5005A_NAME), HAL_MAX_DELAY);
  37. }
  38. void E104_BT5005A_ADVINTV_Fun(void) {
  39. HAL_UART_Transmit(&huart3, (const uint8_t *)E104_BT5005A_ADVINTV, strlen(E104_BT5005A_ADVINTV), HAL_MAX_DELAY);
  40. }