obex: add MAP constants

This commit is contained in:
Matthias Ringwald 2024-09-27 18:28:45 +02:00
parent d1a44612f2
commit b1b7748945

View File

@ -63,6 +63,10 @@
#define OBEX_RESP_ENTITY_TOO_LARGE 0xCD
#define OBEX_RESP_NOT_IMPLEMENTED 0xD1
#define OBEX_HEADER_TYPE_16BIT_LENGTH_0 0 // 16-bit length info prefixed
#define OBEX_HEADER_TYPE_16BIT_LENGTH_1 1 // 16-bit length info prefixed
#define OBEX_HEADER_TYPE_8BIT_VALUE_2 2 // 8-bit Value
#define OBEX_HEADER_TYPE_32BIT_VALUE_3 32 // 32-bit Value
#define OBEX_HEADER_NAME 0x01
#define OBEX_HEADER_DESCRIPTION 0x05
// user defined 0x30..0x3f: unicode string
@ -103,11 +107,21 @@
#define OBEX_SRM_ENABLE 0x01
#define OBEX_SRM_INDICATE 0x02
/* SRMP header values */
#define OBEX_SRMP_NEXT 0x00
#define OBEX_SRMP_WAIT 0x01
#define OBEX_SRMP_NEXT_WAIT 0x02
/** SRMP header values
* BLUETOOTH SPECIFICATION Generic Object Exchange Profile (GOEP) v1.1.1 page 16
* 4.6.1 MP Use Cases
* The SRMP header shall support the following two use cases. Both cases utilize the
* SRMP wait option (0x01). At this time no valid use cases exist for the SRMP
* additional request (0x00) and additional request + wait (0x02) options, therefore they
* shall not be used.
*/
#define OBEX_SRMP_NEXT 0x00 // should not be sent
#define OBEX_SRMP_WAIT 0x01 // only viable option to be sent
#define OBEX_SRMP_NEXT_WAIT 0x02 // should not be sent
/* SETPATH header Values */
#define OBEX_SP_BIT0_DIR_UP 0x01
#define OBEX_SP_BIT1_DONT_CREATE_DIR 0x02
/**
* PBAP
@ -153,7 +167,13 @@
*/
// MAP Application Parameters Tag IDs
#define MAP_APPLICATION_PARAMETER_MAS_INSTANCE_ID 0x0f
//#define MAP_APPLICATION_PARAMETER_MAX_LIST_COUNT 0x01
//#define MAP_APPLICATION_PARAMETER_ATTACHEMENT 0x0A
//#define MAP_APPLICATION_PARAMETER_PARAMETER_MASK 0x10
//#define MAP_APPLICATION_PARAMETER_CHARSET 0x14
//#define MAP_APPLICATION_PARAMETER_STATUS_INDICATOR 0x17
//#define MAP_APPLICATION_PARAMETER_STATUS_VALUE 0x18
//#define MAP_APPLICATION_PARAMETER_MAP_SUPPORTED_FEATURES 0x29
#endif