====== OSA : OS_Flag_Init ======
**OS_Flag_Init (flags, value)**\\
**OS_Flag_Init_I (flags, value)**\\
=== ===
Устанавливает все флаги в заданное значение
=== Разрешен вызов: ===
Везде
=== Параметры функции: ===
{| class = "fpl"
|-
|//''flags''//
|Переменная типа ##[[osa:ref:description:data_types|OST_FLAGx]]## (x = 8, 16, 32)
|-
|//''value''//
|Начальное значение флагов.
|}
=== Возвращаемое значение: ===
Нет
=== Пример вызова: ===
OST_FLAG8 flag;
void Task (void)
{
for (;;) {
/*...*/
OS_Flag_Init (flags, 0xFF);
/*...*/
}
}
=== Old style name ===
**OS_InitFlag**\\
**OS_Flag_Check_On**\\
=== См. также ===
* [[osa:ref:allservices:OS_Flag_Create|OS_Flag_Create]]
* [[osa:ref:allservices:OS_Flag_Set|OS_Flag_Set]]
* [[osa:ref:allservices:OS_Flag_Clear|OS_Flag_Clear]]
* [[osa:ref:allservices:OS_Flag_Check_AllOn|OS_Flag_Check_AllOn]]
* [[osa:ref:allservices:OS_Flag_Check_On|OS_Flag_Check_On]]
* [[osa:ref:allservices:OS_Flag_Check_AllOff|OS_Flag_Check_AllOff]]
* [[osa:ref:allservices:OS_Flag_Check_Off|OS_Flag_Check_Off]]
* [[osa:ref:allservices:OS_Flag_Wait_AllOn|OS_Flag_Wait_AllOn]]
* [[osa:ref:allservices:OS_Flag_Wait_On|OS_Flag_Wait_On]]
* [[osa:ref:allservices:OS_Flag_Wait_AllOff|OS_Flag_Wait_AllOff]]
* [[osa:ref:allservices:OS_Flag_Wait_Off|OS_Flag_Wait_Off]]
* [[osa:ref:allservices:OS_Flag_Wait_AllOn_TO|OS_Flag_Wait_AllOn_TO]]
* [[osa:ref:allservices:OS_Flag_Wait_On_TO|OS_Flag_Wait_On_TO]]
* [[osa:ref:allservices:OS_Flag_Wait_AllOff_TO|OS_Flag_Wait_AllOff_TO]]
* [[osa:ref:allservices:OS_Flag_Wait_Off_TO|OS_Flag_Wait_Off_TO]]
----
* [[osa:ref:services:alphabetical|Алфавитный указатель]]
* [[osa:ref:services:brieflist|Все сервисы]]
~~UP~~