File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ typedef struct fhss_ws_configuration
86
86
/** WS channel function. */
87
87
fhss_ws_channel_functions ws_channel_function ;
88
88
89
+ /** Broadcast schedule identifier. */
90
+ uint16_t bsi ;
91
+
89
92
/** Unicast dwell interval. Range: 15-250 milliseconds. */
90
93
uint8_t fhss_uc_dwell_interval ;
91
94
Original file line number Diff line number Diff line change @@ -63,14 +63,12 @@ static void fhss_ws_update_bc_channel(fhss_structure_t *fhss_structure)
63
63
if (fhss_structure -> ws -> channel_function == WS_FIXED_CHANNEL ) {
64
64
65
65
} else if (fhss_structure -> ws -> channel_function == WS_TR51CF ) {
66
- // TODO: Second parameter is BSI which needs to be implemented in FHSS configurations
67
- next_channel = tr51_get_bc_channel_index (fhss_structure -> ws -> bc_slot , 0xffff , fhss_structure -> number_of_channels );
66
+ next_channel = tr51_get_bc_channel_index (fhss_structure -> ws -> bc_slot , fhss_structure -> fhss_conf .fhss_ws_configuration .bsi , fhss_structure -> number_of_channels );
68
67
if (++ fhss_structure -> ws -> bc_slot == fhss_structure -> number_of_channels ) {
69
68
fhss_structure -> ws -> bc_slot = 0 ;
70
69
}
71
70
} else if (fhss_structure -> ws -> channel_function == WS_DH1CF ) {
72
- // TODO: Second parameter is BSI which needs to be implemented in FHSS configurations
73
- next_channel = dh1cf_get_bc_channel_index (fhss_structure -> ws -> bc_slot , 0xffff , fhss_structure -> number_of_channels );
71
+ next_channel = dh1cf_get_bc_channel_index (fhss_structure -> ws -> bc_slot , fhss_structure -> fhss_conf .fhss_ws_configuration .bsi , fhss_structure -> number_of_channels );
74
72
fhss_structure -> ws -> bc_slot ++ ;
75
73
} else if (fhss_structure -> ws -> channel_function == WS_VENDOR_DEF_CF ) {
76
74
//TODO: Callback to get channel schedule from application
You can’t perform that action at this time.
0 commit comments