forked from imsoo/integ_media
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,125 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,40 @@ | ||
/* | ||
bluetooth.h | ||
*/ | ||
|
||
extern unsigned char bt_state; | ||
extern unsigned char bt_index; | ||
extern unsigned char bt_count; | ||
extern unsigned char bt_dis_count; | ||
extern unsigned char btBuf[100]; | ||
unsigned char bluetooth_init(unsigned char deviceType); | ||
unsigned char bluetooth_send(unsigned char* dest_addr, unsigned char* data, int data_length); | ||
unsigned char bluetooth_send(unsigned char* dest_addr, unsigned char* data, int data_length); | ||
|
||
// BlueTooth Init | ||
void BT_M_Init(); | ||
void BT_S_Init(); | ||
void task_bt_update(void *arg); | ||
void task_connect(void *arg); | ||
|
||
// AT 커맨더 진입 | ||
void BT_AT(); | ||
//속도 설정 - 115200 | ||
void BT_SetBaud(); | ||
// Mac 주소 물어보기 | ||
void BT_MacAddress(); | ||
// 모드 설정 | ||
void BT_ControlMode(); | ||
// 마스터 / 슬레이브 변경 | ||
void BT_SetChangeRole(); | ||
// Master 설정 | ||
void BT_SetMaster(); | ||
// SLAVE 설정 | ||
void BT_SetSlave(); | ||
// 초기화 | ||
void BT_Reset(); | ||
//IMME 1 | ||
void BT_IMME(); | ||
//START | ||
void BT_START(); | ||
//CONNECT | ||
void BT_CONNET(); | ||
void bluetooth_print_buf(); // 임시 |
Oops, something went wrong.