dm6446/ocvc/lpm_driver.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* LPM_ExtPwrFxn )(void *arg)
 Function typedef of the functions which control the external power supply.

Functions

int lpm_regExtOffFxn (char *device, LPM_ExtPwrFxn fxn, void *arg)
 Register an external power off function.
int lpm_regExtOnFxn (char *device, LPM_ExtPwrFxn fxn, void *arg)
 Register an external power on function.

Typedef Documentation

typedef void(* LPM_ExtPwrFxn)(void *arg)

Function typedef of the functions which control the external power supply.


Function Documentation

int lpm_regExtOffFxn ( char *  device,
LPM_ExtPwrFxn  fxn,
void *  arg 
)

Register an external power off function.

Parameters:
[in] device Linux device name.
[in] fxn A function address which will turn off the external power supply to the DSP Power Domain.
[in] arg An argument passed to the callback function.
Return values:
0 The function was successfully registered.
-1 The given device name was not found.
int lpm_regExtOnFxn ( char *  device,
LPM_ExtPwrFxn  fxn,
void *  arg 
)

Register an external power on function.

Parameters:
[in] device Linux device name.
[in] fxn A function address which will turn off the external power supply to the DSP Power Domain.
[in] arg An argument passed to the callback function.
Return values:
0 The function was successfully registered.
-1 The given device name was not found.

Copyright 2010, Texas Instruments Incorporated