hfp_hf.c (186dd3d22a29104ae1f1e77d2f5c5aff885c9f1a) | hfp_hf.c (86da9d7414edc38c74d4336c8c6075b6f37ddb4e) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 191 unchanged lines hidden (view full) --- 200} 201 202static inline int hfp_hf_send_cmd_with_mark(uint16_t cid, const char * cmd, const char * mark){ 203 char buffer[20]; 204 snprintf(buffer, sizeof(buffer), "AT%s%s\r\n", cmd, mark); 205 return send_str_over_rfcomm(cid, buffer); 206} 207 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 191 unchanged lines hidden (view full) --- 200} 201 202static inline int hfp_hf_send_cmd_with_mark(uint16_t cid, const char * cmd, const char * mark){ 203 char buffer[20]; 204 snprintf(buffer, sizeof(buffer), "AT%s%s\r\n", cmd, mark); 205 return send_str_over_rfcomm(cid, buffer); 206} 207 |
208static inline int hfp_hf_send_cmd_with_int(uint16_t cid, const char * cmd, uint8_t value){ | 208static inline int hfp_hf_send_cmd_with_int(uint16_t cid, const char * cmd, uint16_t value){ |
209 char buffer[40]; 210 snprintf(buffer, sizeof(buffer), "AT%s=%d\r\n", cmd, value); 211 return send_str_over_rfcomm(cid, buffer); 212} 213 214static int hfp_hf_cmd_notify_on_codecs(uint16_t cid){ 215 char buffer[30]; 216 const int size = sizeof(buffer); --- 1465 unchanged lines hidden --- | 209 char buffer[40]; 210 snprintf(buffer, sizeof(buffer), "AT%s=%d\r\n", cmd, value); 211 return send_str_over_rfcomm(cid, buffer); 212} 213 214static int hfp_hf_cmd_notify_on_codecs(uint16_t cid){ 215 char buffer[30]; 216 const int size = sizeof(buffer); --- 1465 unchanged lines hidden --- |