Skip to content

Commit e88695a

Browse files
PavelVPVcfriedt
authored andcommitted
bluetooth: mesh: move mesh assigned numbers to dedicated header
Move assigned number for mesh from mesh.h to assigned_numbers.h where all assigned numbers are located. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 6903140 commit e88695a

File tree

2 files changed

+198
-188
lines changed

2 files changed

+198
-188
lines changed

include/zephyr/bluetooth/assigned_numbers.h

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,203 @@ extern "C" {
717717
/** @} */ /* end of @name Flags data type values */
718718
/** @} */ /* end of bt_assigned_numbers_core */
719719

720+
/**
721+
* @brief Bluetooth Mesh Assigned Numbers
722+
* @defgroup bt_assigned_numbers_mesh Bluetooth Mesh Assigned Numbers
723+
* @ingroup bt_assigned_numbers
724+
* @{
725+
*/
726+
727+
/**
728+
* @name Foundation Models
729+
* @{
730+
*/
731+
/** Configuration Server */
732+
#define BT_MESH_MODEL_ID_CFG_SRV 0x0000
733+
/** Configuration Client */
734+
#define BT_MESH_MODEL_ID_CFG_CLI 0x0001
735+
/** Health Server */
736+
#define BT_MESH_MODEL_ID_HEALTH_SRV 0x0002
737+
/** Health Client */
738+
#define BT_MESH_MODEL_ID_HEALTH_CLI 0x0003
739+
/** Remote Provisioning Server */
740+
#define BT_MESH_MODEL_ID_REMOTE_PROV_SRV 0x0004
741+
/** Remote Provisioning Client */
742+
#define BT_MESH_MODEL_ID_REMOTE_PROV_CLI 0x0005
743+
/** Bridge Configuration Sever */
744+
#define BT_MESH_MODEL_ID_BRG_CFG_SRV 0x0008
745+
/** Bridge Configuration Client */
746+
#define BT_MESH_MODEL_ID_BRG_CFG_CLI 0x0009
747+
/** Private Beacon Server */
748+
#define BT_MESH_MODEL_ID_PRIV_BEACON_SRV 0x000a
749+
/** Private Beacon Client */
750+
#define BT_MESH_MODEL_ID_PRIV_BEACON_CLI 0x000b
751+
/** SAR Configuration Server */
752+
#define BT_MESH_MODEL_ID_SAR_CFG_SRV 0x000e
753+
/** SAR Configuration Client */
754+
#define BT_MESH_MODEL_ID_SAR_CFG_CLI 0x000f
755+
/** Opcodes Aggregator Server */
756+
#define BT_MESH_MODEL_ID_OP_AGG_SRV 0x0010
757+
/** Opcodes Aggregator Client */
758+
#define BT_MESH_MODEL_ID_OP_AGG_CLI 0x0011
759+
/** Large Composition Data Server */
760+
#define BT_MESH_MODEL_ID_LARGE_COMP_DATA_SRV 0x0012
761+
/** Large Composition Data Client */
762+
#define BT_MESH_MODEL_ID_LARGE_COMP_DATA_CLI 0x0013
763+
/** Solicitation PDU RPL Configuration Client */
764+
#define BT_MESH_MODEL_ID_SOL_PDU_RPL_SRV 0x0014
765+
/** Solicitation PDU RPL Configuration Server */
766+
#define BT_MESH_MODEL_ID_SOL_PDU_RPL_CLI 0x0015
767+
/** Private Proxy Server */
768+
#define BT_MESH_MODEL_ID_ON_DEMAND_PROXY_SRV 0x000c
769+
/** Private Proxy Client */
770+
#define BT_MESH_MODEL_ID_ON_DEMAND_PROXY_CLI 0x000d
771+
/**
772+
* @}
773+
*/
774+
775+
/**
776+
* @name Models from the Mesh Model Specification
777+
* @{
778+
*/
779+
/** Generic OnOff Server */
780+
#define BT_MESH_MODEL_ID_GEN_ONOFF_SRV 0x1000
781+
/** Generic OnOff Client */
782+
#define BT_MESH_MODEL_ID_GEN_ONOFF_CLI 0x1001
783+
/** Generic Level Server */
784+
#define BT_MESH_MODEL_ID_GEN_LEVEL_SRV 0x1002
785+
/** Generic Level Client */
786+
#define BT_MESH_MODEL_ID_GEN_LEVEL_CLI 0x1003
787+
/** Generic Default Transition Time Server */
788+
#define BT_MESH_MODEL_ID_GEN_DEF_TRANS_TIME_SRV 0x1004
789+
/** Generic Default Transition Time Client */
790+
#define BT_MESH_MODEL_ID_GEN_DEF_TRANS_TIME_CLI 0x1005
791+
/** Generic Power OnOff Server */
792+
#define BT_MESH_MODEL_ID_GEN_POWER_ONOFF_SRV 0x1006
793+
/** Generic Power OnOff Setup Server */
794+
#define BT_MESH_MODEL_ID_GEN_POWER_ONOFF_SETUP_SRV 0x1007
795+
/** Generic Power OnOff Client */
796+
#define BT_MESH_MODEL_ID_GEN_POWER_ONOFF_CLI 0x1008
797+
/** Generic Power Level Server */
798+
#define BT_MESH_MODEL_ID_GEN_POWER_LEVEL_SRV 0x1009
799+
/** Generic Power Level Setup Server */
800+
#define BT_MESH_MODEL_ID_GEN_POWER_LEVEL_SETUP_SRV 0x100a
801+
/** Generic Power Level Client */
802+
#define BT_MESH_MODEL_ID_GEN_POWER_LEVEL_CLI 0x100b
803+
/** Generic Battery Server */
804+
#define BT_MESH_MODEL_ID_GEN_BATTERY_SRV 0x100c
805+
/** Generic Battery Client */
806+
#define BT_MESH_MODEL_ID_GEN_BATTERY_CLI 0x100d
807+
/** Generic Location Server */
808+
#define BT_MESH_MODEL_ID_GEN_LOCATION_SRV 0x100e
809+
/** Generic Location Setup Server */
810+
#define BT_MESH_MODEL_ID_GEN_LOCATION_SETUPSRV 0x100f
811+
/** Generic Location Client */
812+
#define BT_MESH_MODEL_ID_GEN_LOCATION_CLI 0x1010
813+
/** Generic Admin Property Server */
814+
#define BT_MESH_MODEL_ID_GEN_ADMIN_PROP_SRV 0x1011
815+
/** Generic Manufacturer Property Server */
816+
#define BT_MESH_MODEL_ID_GEN_MANUFACTURER_PROP_SRV 0x1012
817+
/** Generic User Property Server */
818+
#define BT_MESH_MODEL_ID_GEN_USER_PROP_SRV 0x1013
819+
/** Generic Client Property Server */
820+
#define BT_MESH_MODEL_ID_GEN_CLIENT_PROP_SRV 0x1014
821+
/** Generic Property Client */
822+
#define BT_MESH_MODEL_ID_GEN_PROP_CLI 0x1015
823+
/** Sensor Server */
824+
#define BT_MESH_MODEL_ID_SENSOR_SRV 0x1100
825+
/** Sensor Setup Server */
826+
#define BT_MESH_MODEL_ID_SENSOR_SETUP_SRV 0x1101
827+
/** Sensor Client */
828+
#define BT_MESH_MODEL_ID_SENSOR_CLI 0x1102
829+
/** Time Server */
830+
#define BT_MESH_MODEL_ID_TIME_SRV 0x1200
831+
/** Time Setup Server */
832+
#define BT_MESH_MODEL_ID_TIME_SETUP_SRV 0x1201
833+
/** Time Client */
834+
#define BT_MESH_MODEL_ID_TIME_CLI 0x1202
835+
/** Scene Server */
836+
#define BT_MESH_MODEL_ID_SCENE_SRV 0x1203
837+
/** Scene Setup Server */
838+
#define BT_MESH_MODEL_ID_SCENE_SETUP_SRV 0x1204
839+
/** Scene Client */
840+
#define BT_MESH_MODEL_ID_SCENE_CLI 0x1205
841+
/** Scheduler Server */
842+
#define BT_MESH_MODEL_ID_SCHEDULER_SRV 0x1206
843+
/** Scheduler Setup Server */
844+
#define BT_MESH_MODEL_ID_SCHEDULER_SETUP_SRV 0x1207
845+
/** Scheduler Client */
846+
#define BT_MESH_MODEL_ID_SCHEDULER_CLI 0x1208
847+
/** Light Lightness Server */
848+
#define BT_MESH_MODEL_ID_LIGHT_LIGHTNESS_SRV 0x1300
849+
/** Light Lightness Setup Server */
850+
#define BT_MESH_MODEL_ID_LIGHT_LIGHTNESS_SETUP_SRV 0x1301
851+
/** Light Lightness Client */
852+
#define BT_MESH_MODEL_ID_LIGHT_LIGHTNESS_CLI 0x1302
853+
/** Light CTL Server */
854+
#define BT_MESH_MODEL_ID_LIGHT_CTL_SRV 0x1303
855+
/** Light CTL Setup Server */
856+
#define BT_MESH_MODEL_ID_LIGHT_CTL_SETUP_SRV 0x1304
857+
/** Light CTL Client */
858+
#define BT_MESH_MODEL_ID_LIGHT_CTL_CLI 0x1305
859+
/** Light CTL Temperature Server */
860+
#define BT_MESH_MODEL_ID_LIGHT_CTL_TEMP_SRV 0x1306
861+
/** Light HSL Server */
862+
#define BT_MESH_MODEL_ID_LIGHT_HSL_SRV 0x1307
863+
/** Light HSL Setup Server */
864+
#define BT_MESH_MODEL_ID_LIGHT_HSL_SETUP_SRV 0x1308
865+
/** Light HSL Client */
866+
#define BT_MESH_MODEL_ID_LIGHT_HSL_CLI 0x1309
867+
/** Light HSL Hue Server */
868+
#define BT_MESH_MODEL_ID_LIGHT_HSL_HUE_SRV 0x130a
869+
/** Light HSL Saturation Server */
870+
#define BT_MESH_MODEL_ID_LIGHT_HSL_SAT_SRV 0x130b
871+
/** Light xyL Server */
872+
#define BT_MESH_MODEL_ID_LIGHT_XYL_SRV 0x130c
873+
/** Light xyL Setup Server */
874+
#define BT_MESH_MODEL_ID_LIGHT_XYL_SETUP_SRV 0x130d
875+
/** Light xyL Client */
876+
#define BT_MESH_MODEL_ID_LIGHT_XYL_CLI 0x130e
877+
/** Light LC Server */
878+
#define BT_MESH_MODEL_ID_LIGHT_LC_SRV 0x130f
879+
/** Light LC Setup Server */
880+
#define BT_MESH_MODEL_ID_LIGHT_LC_SETUPSRV 0x1310
881+
/** Light LC Client */
882+
#define BT_MESH_MODEL_ID_LIGHT_LC_CLI 0x1311
883+
/**
884+
* @}
885+
*/
886+
887+
/**
888+
* @name Models from the Mesh Binary Large Object Transfer Model Specification
889+
* @{
890+
*/
891+
/** BLOB Transfer Server */
892+
#define BT_MESH_MODEL_ID_BLOB_SRV 0x1400
893+
/** BLOB Transfer Client */
894+
#define BT_MESH_MODEL_ID_BLOB_CLI 0x1401
895+
/**
896+
* @}
897+
*/
898+
899+
/**
900+
* @name Models from the Mesh Device Firmware Update Model Specification
901+
* @{
902+
*/
903+
/** Firmware Update Server */
904+
#define BT_MESH_MODEL_ID_DFU_SRV 0x1402
905+
/** Firmware Update Client */
906+
#define BT_MESH_MODEL_ID_DFU_CLI 0x1403
907+
/** Firmware Distribution Server */
908+
#define BT_MESH_MODEL_ID_DFD_SRV 0x1404
909+
/** Firmware Distribution Client */
910+
#define BT_MESH_MODEL_ID_DFD_CLI 0x1405
911+
/**
912+
* @}
913+
*/
914+
915+
/** @} */ /* end of bt_assigned_numbers_mesh */
916+
720917
/**
721918
* @brief Generic Audio Assigned Numbers
722919
* @defgroup bt_assigned_numbers_audio Generic Audio Assigned Numbers

0 commit comments

Comments
 (0)