Lines Matching refs:alarmIndex
328 static int32_t HiReadAlarm(struct RtcHost *host, enum RtcAlarmIndex alarmIndex, struct RtcTime *time)
339 if (alarmIndex != rtcInfo->alarmIndex) {
340 HDF_LOGE("HiReadAlarm: alarmIndex para error!");
354 static int32_t HiWriteAlarm(struct RtcHost *host, enum RtcAlarmIndex alarmIndex, const struct RtcTime *time)
365 if (alarmIndex != rtcInfo->alarmIndex) {
366 HDF_LOGE("WriteAlarm: alarmIndex para error!");
380 static int32_t HiRegisterAlarmCallback(struct RtcHost *host, enum RtcAlarmIndex alarmIndex, RtcAlarmCallback cb)
390 if (alarmIndex != rtcInfo->alarmIndex) {
391 HDF_LOGE("HiRegisterAlarmCallback: alarmIndex para error!");
398 static int32_t HiAlarmInterruptEnable(struct RtcHost *host, enum RtcAlarmIndex alarmIndex, uint8_t enable)
404 if (host == NULL || host->data == NULL || alarmIndex != RTC_ALARM_INDEX_A) {
650 rtcInfo->alarmIndex = RTC_ALARM_INDEX_A;
681 return rtcInfo->cb(rtcInfo->alarmIndex);