Instruction Manual

73M1866B/73M1966B TAPI High-Level Driver User Guide UG_1x66B_021
20 Rev. 2.2
3.17 IFX_TAPI_FXO_BAT_ GET
Description
Receives battery status from the FXO interface.
#define IFX_TAPI_FXO_BAT_GET _IOW(IFX_TAPI_IOC_MAGIC, 0xDD, int)
Prototype
int ioctl (
int chan_fd,
int IFX_TAPI_FXO_BAT_GET,
unsigned long param );
Parameters
Data Type Name Description
chan_fd
Channel descriptor.
IFX_TAPI_FXO_BAT_GET
I/O control identifier for this operation.
unsigned long param
Points to IFX_boolean_t type,
indicating the battery status
IFX_TRUE if the FXO port is
disconnected from the PSTN (battery
absent).
IFX_FALSE if the FXO port is
connected to the PSTN (battery
present).
Return Values
Data Type Description
int
IFX_ERROR Failed to read battery status.
IFX_SUCCESS Successful.