ARM7 Processor Peripheral Device API Function List

This interface is used so that ARM9 can operate peripheral devices that are connected on the ARM7 side. Access to the touch panel, NVRAM, and the microphone, and the power management IC is performed using exclusive control. Therefore, errors may be returned in response to requests. Note this when you access simultaneously.

Touch Panel (TP)

Initialization

TP_Init Initializes the touch panel API.
TP_SetCallback Sets the callback function that will be used when a request instruction to ARM7 completes.
TP_SetCalibrateParam Sets the parameters that are used for calibration.
TP_RequestSetStability Requests ARM7 to set parameters for counteracting chattering.

Sampling Caused by a Request

TP_RequestRawSampling Requests ARM7 for one cycle of touch panel values, and acquires coordinate values as unconverted, raw touch panel values.
TP_RequestCalibratedSampling Requests ARM7 for one cycle of touch panel values. It converts coordinate values to screen coordinates and acquires them.
TP_RequestSamplingAsync Asynchronously requests ARM7 for one cycle of touch panel values.
TP_WaitRawResult Acquires one cycle of coordinate values as unconverted, raw touch panel values.
TP_WaitCalibratedResult Converts one cycle of coordinate values to screen coordinates and acquires it.
TP_GetCalibratedResult Converts and gets coordinate values that have arrived to screen coordinates.

Auto-Sampling

TP_RequestAutoSamplingStart Requests ARM7 to begin auto-sampling.
TP_RequestAutoSamplingStartAsync Asynchronously requests ARM7 to begin auto-sampling.
TP_RequestAutoSamplingStop Requests ARM7 to stop auto-sampling.
TP_RequestAutoSamplingStopAsync Asynchronously requests ARM7 to stop auto-sampling.
TP_GetLatestRawPointInAuto Acquires the last valid values that were obtained by auto sampling, as unconverted, raw touch panel values.
TP_GetLatestCalibratedPointInAuto Acquires the last valid values that were obtained by auto sampling, as converted screen coordinates.
TP_GetLatestIndexInAuto Acquires the index of the last data that was stored by auto sampling.

Calibration

TP_GetUserInfo Acquires parameters for calibration from the flash memory in the main unit.
TP_CalcCalibrateParam Calibrates parameters for calibration from 2 coordinate points.
TP_GetCalibratedPoint Converts raw touch panel values and acquires screen coordinates.
TP_GetUnCalibratedPoint Back-converts screen coordinates, and acquires touch panel values.

Pass Fail Determination

TP_WaitBusy Waits for the return from ARM7 of a termination acknowledgement for a particular request.
TP_WaitAllBusy Waits for the return from ARM7 of termination acknowledgements for all requests.
TP_CheckBusy Asynchronously checks termination acknowledgements from ARM7.
TP_CheckError Check whether a process on ARM7 terminated properly.

Types, Structures

TPData Structure that points to the coordinates of the touch panel.
TPRecvCallback Sets the callback function that will be used when a request instruction to ARM7 completes.

Microphone (MIC)

Initialization

MIC_Init Initializes the microphone API.

Sampling

MIC_DoSampling Samples the microphone one time.
MIC_DoSamplingAsync Asynchronously samples the microphone one time.

Auto-Sampling

MIC_StartAutoSampling Starts microphone auto-sampling.
MIC_StartAutoSamplingAsync Asynchronously starts microphone auto-sampling.
MIC_StopAutoSampling Stops microphone auto-sampling.
MIC_StopAutoSamplingAsync Asynchronously stops microphone auto-sampling.
MIC_AdjustAutoSampling Changes sampling rate in microphone autosampling.
MIC_AdjustAutoSamplingAsync Asynchronously changes sampling rate in microphone autosampling.
MIC_GetLastSamplingAddress Acquires the address at which the most recent microphone sampling results are stored.

Types, Structures

MICAutoParam Structure for microphone auto-sampling parameters
MICSamplingType Enumerator type for microphone sampling types
MICSamplingRate Enumerator type for microphone sampling rates
MICCallback Callback function type for asynchronous microphone functions
MICResult Enumerator type for the process results that are shared by the microphone API function group

Power Management (PM)

Initialization

PM_Init Initializes the power management API

PMIC Operation

PM_ForceToPowerOff* Forcibly turns off the Power button.
PM_SetBackLight* Sets the backlight status.
PM_SetAmp* Toggles the output of the programmable gain amp.
PM_SetAmpGain* Sets the gain of the programmable gain amp.
PM_SetLCDPower Toggles the LCD switch.

PMIC Status

PM_GetBackLight This function checks the remaining battery capacity of the battery pack.
PM_GetBackLight Obtains the back light status.
PM_GetAmp Obtains the output switch setting of the programmable gain amp.
PM_GetAmpGain Obtains the gain setting of the programmable gain amp.
PM_GetLCDPower Obtains the LCD switch status.
PM_GetLEDPattern Obtains the LCD status.

Sleep

PM_GoSleepMode Changes to the sleep mode.
PM_SetSleepCallbackInfo Sets sleep mode callback information.
PM_AppendPreSleepCallback Adds a callback function for changing to sleep mode at the end of the list.
PM_PrependPreSleepCallback Adds a callback function for changing to sleep mode at the beginning of the list.
PM_AppendPostSleepCallback Adds a callback function for awakening from sleep mode at the end of the list.
PM_PrependPostSleepCallback Adds a callback function for awakening from sleep mode at the beginning of the list.
PM_DeletePreSleepCallback Deletes a registered callback function for entering sleep mode.
PM_DeletePostSleepCallback Deletes a registered callback function for awakening from sleep mode.