kopia lustrzana https://github.com/SP8EBC/ParaTNC
28 wiersze
618 B
C
28 wiersze
618 B
C
/*
|
|
* umb_pool.c
|
|
*
|
|
* Created on: 21.03.2020
|
|
* Author: mateusz
|
|
*/
|
|
|
|
#include <umb_master/umb_channel_pool.h>
|
|
#include <umb_master/umb_0x23_offline_data.h>
|
|
#include "station_config.h"
|
|
|
|
void umb_channel_pool(umb_frame_t *frame, umb_context_t *ctx) {
|
|
#if defined(_UMB_MASTER)
|
|
if (ctx->channel_number_it >= UMB_CHANNELS_STORAGE_CAPAC)
|
|
ctx->channel_number_it = 0;
|
|
|
|
uint16_t curr_chn = ctx->channel_numbers[ctx->channel_number_it];
|
|
ctx->current_channel = curr_chn;
|
|
|
|
if (curr_chn != 0xFFFFu && curr_chn != 0x0u) {
|
|
umb_0x23_offline_data_request(frame, ctx, curr_chn);
|
|
}
|
|
|
|
ctx->channel_number_it++;
|
|
#endif
|
|
}
|
|
|