RZ/A1H CMSIS-RTOS RTX BSP for GR-PEACH.

Dependents:   R_BSP_SSIF_HelloWorld GR-PEACH_Azure_Speech ImageZoomInout_Sample ImageRotaion_Sample ... more

Fork of R_BSP by Daiki Kato

Embed: (wiki syntax)

« Back to documentation index

scux_ioctl.c File Reference

scux_ioctl.c File Reference

SCUX Driver ioctl functions. More...

Go to the source code of this file.

Functions

int_t SCUX_IoctlTransStart (const int_t channel)
 Function Name: SCUX_IoctlTransStart.
int_t SCUX_IoctlFlushStop (const int_t channel, void(*const callback)(int_t), const int_t was_masked)
 Function Name: SCUX_IoctlFlushStop.
int_t SCUX_IoctlClearStop (const int_t channel, const int_t was_masked)
 Function Name: SCUX_IoctlClearStop.
void SCUX_IoctlSetRoute (const int_t channel, const scux_route_t route)
 Function Name: SCUX_IoctlSetRoute.
int_t SCUX_IoctlSetPinClk (const int_t channel, const scux_ssif_pin_clk_t *const p_pin_clk_param)
 Function Name: SCUX_IoctlSetPinClk.
int_t SCUX_IoctlSetPinMode (const int_t channel, const scux_ssif_pin_mode_t *const p_pin_mode_param)
 Function Name: SCUX_IoctlSetPinMode.
void SCUX_IoctlSetSrcCfg (const int_t channel, const scux_src_cfg_t *const p_src_param)
 Function Name: SCUX_IoctlSetSrcCfg.
void SCUX_IoctlSetDvuCfg (const int_t channel, const scux_dvu_cfg_t *const p_dvu_param)
 Function Name: SCUX_IoctlSetDvuCfg.
int_t SCUX_IoctlSetDvuDigiVol (const int_t channel, const scux_dvu_digi_vol_t *const p_digi_vol_param)
 Function Name: SCUX_IoctlSetDvuDigiVol.
int_t SCUX_IoctlSetDvuRampVol (const int_t channel, const scux_dvu_ramp_vol_t *const p_ramp_vol_param)
 Function Name: SCUX_IoctlSetDvuRampVol.
int_t SCUX_IoctlSetDvuZerocrossMute (const int_t channel, const scux_zc_mute_t *const p_zc_mute_param)
 Function Name: SCUX_IoctlSetDvuZerocrossMute.
int_t SCUX_IoctlSetStopMute (const int_t channel, const uint32_t audio_channel)
 Function Name: SCUX_IoctlSetStopMute.
int_t SCUX_IoctlSetMixCfg (const scux_mix_cfg_t *const p_mix_param)
 Function Name: SCUX_IoctlSetMixCfg.
int_t SCUX_IoctlSetMixVol (const int_t channel, const uint32_t mix_vol)
 Function Name: SCUX_IoctlSetMixVol.
int_t SCUX_IoctlSetSsifCfg (const scux_ssif_cfg_t *const p_ssif_param)
 Function Name: SCUX_IoctlSetSsifCfg.
void SCUX_IoctlGetWriteStat (const int_t channel, uint32_t *const p_write_stat)
 Function Name: SCUX_IoctlGetWriteStat.
void SCUX_IoctlGetReadStat (const int_t channel, uint32_t *const p_read_stat)
 Function Name: SCUX_IoctlGetReadStat.
void SCUX_IoctlGetDvuStat (const int_t channel, uint32_t *const p_dvu_stat)
 Function Name: SCUX_IoctlGetDvuStat.
void SCUX_IoctlGetMuteStat (const int_t channel, uint32_t *const p_mute_stat)
 Function Name: SCUX_IoctlGetMuteStat.
void SCUX_IoctlGetMixStat (const int_t channel, uint32_t *const p_mix_stat)
 Function Name: SCUX_IoctlGetMixStat.

Detailed Description

SCUX Driver ioctl functions.

Rev:
1674
Date:
2015-05-29 16:35:57 +0900#

Definition in file scux_ioctl.c.


Function Documentation

int_t SCUX_IoctlClearStop ( const int_t  channel,
const int_t  was_masked 
)

Function Name: SCUX_IoctlClearStop.

Set flush stop paramter.

Description:

Parameters:
[in]channel:SCUXchannel number.
Return values:
ESUCCESS: Operation successful. EFAULT : Internal error is occured.

Definition at line 1197 of file scux_ioctl.c.

int_t SCUX_IoctlFlushStop ( const int_t  channel,
void(*)(int_t)  callback,
const int_t  was_masked 
)

Function Name: SCUX_IoctlFlushStop.

Set flush stop paramter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in](*callback)(void):callbackfunction pointer.
[in]was_masked:interruptenable information.
Return values:
ESUCCESS: Operation successful. EFAULT : Internal error is occured.

Definition at line 1091 of file scux_ioctl.c.

void SCUX_IoctlGetDvuStat ( const int_t  channel,
uint32_t *const   p_dvu_stat 
)

Function Name: SCUX_IoctlGetDvuStat.

Get DVU status.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_dvu_stat:DVUstatus.
Return values:
None.

Definition at line 2490 of file scux_ioctl.c.

void SCUX_IoctlGetMixStat ( const int_t  channel,
uint32_t *const   p_mix_stat 
)

Function Name: SCUX_IoctlGetMixStat.

Get MIX status.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_mix_stat:MIXstatus.
Return values:
None.

Definition at line 2564 of file scux_ioctl.c.

void SCUX_IoctlGetMuteStat ( const int_t  channel,
uint32_t *const   p_mute_stat 
)

Function Name: SCUX_IoctlGetMuteStat.

Get MUTE status.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_mute_stat:MUTEstatus.
Return values:
None.

Definition at line 2521 of file scux_ioctl.c.

void SCUX_IoctlGetReadStat ( const int_t  channel,
uint32_t *const   p_read_stat 
)

Function Name: SCUX_IoctlGetReadStat.

Get read request status.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_read_stat:Readrequest status.
Return values:
None.

Definition at line 2434 of file scux_ioctl.c.

void SCUX_IoctlGetWriteStat ( const int_t  channel,
uint32_t *const   p_write_stat 
)

Function Name: SCUX_IoctlGetWriteStat.

Get write request status.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_write_stat:Writerequest status.
Return values:
None.

Definition at line 2378 of file scux_ioctl.c.

void SCUX_IoctlSetDvuCfg ( const int_t  channel,
const scux_dvu_cfg_t *const   p_dvu_param 
)

Function Name: SCUX_IoctlSetDvuCfg.

Set DVU parameter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_dvu_param:DVUparameter.
Return values:
None.

Definition at line 1750 of file scux_ioctl.c.

int_t SCUX_IoctlSetDvuDigiVol ( const int_t  channel,
const scux_dvu_digi_vol_t *const   p_digi_vol_param 
)

Function Name: SCUX_IoctlSetDvuDigiVol.

Set Digital volume parameter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_dvu_param:Digitalvolume parameter.
Return values:
ESUCCESS:Operationsuccessful. EPERM:Parameter is unexpected value. EFAULT : Internal error is occured.

Definition at line 1810 of file scux_ioctl.c.

int_t SCUX_IoctlSetDvuRampVol ( const int_t  channel,
const scux_dvu_ramp_vol_t *const   p_ramp_vol_param 
)

Function Name: SCUX_IoctlSetDvuRampVol.

Set Digital volume parameter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_dvu_param:Digitalvolume parameter.
Return values:
ESUCCESS:Operationsuccessful. EPERM:Parameter is unexpected value. EFAULT : Internal error is occured.

Definition at line 1884 of file scux_ioctl.c.

int_t SCUX_IoctlSetDvuZerocrossMute ( const int_t  channel,
const scux_zc_mute_t *const   p_zc_mute_param 
)

Function Name: SCUX_IoctlSetDvuZerocrossMute.

Set zerocross mute parameter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_zc_mute_param:zerocrossmute parameter.
Return values:
ESUCCESS:Operationsuccessful. EPERM:Parameter is unexpected value. EPERM:Rewrite callback pointer while waiting zerocross.

Definition at line 1991 of file scux_ioctl.c.

int_t SCUX_IoctlSetMixCfg ( const scux_mix_cfg_t *const   p_mix_param )

Function Name: SCUX_IoctlSetMixCfg.

Set MIX parameter.

Description:

Parameters:
[in]*p_mix_param:MIXparameter.
Return values:
ESUCCESS: Operation successful. EPERM : Transfer parameter is unexpected. EFAULT : Internal error is occured.

Definition at line 2110 of file scux_ioctl.c.

int_t SCUX_IoctlSetMixVol ( const int_t  channel,
const uint32_t  mix_vol 
)

Function Name: SCUX_IoctlSetMixVol.

Set MIX volume.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]mix_vol:MIXvolume.
Return values:
ESUCCESS: Operation successful. EPERM : Transfer parameter is unexpected. EFAULT: Internel error si occured.

Definition at line 2200 of file scux_ioctl.c.

int_t SCUX_IoctlSetPinClk ( const int_t  channel,
const scux_ssif_pin_clk_t *const   p_pin_clk_param 
)

Function Name: SCUX_IoctlSetPinClk.

Set clock source for AUDIO_CLK pin.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_pin_clk_param:clocksource parameter.
Return values:
ESUCCESS:Operationsuccessful. EPERM:Parameter is unexpected value. EFAULT:Internal error is occured.

Definition at line 1431 of file scux_ioctl.c.

int_t SCUX_IoctlSetPinMode ( const int_t  channel,
const scux_ssif_pin_mode_t *const   p_pin_mode_param 
)

Function Name: SCUX_IoctlSetPinMode.

Set synchronous setting for each SSIP pin.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_pin_mode_param:synchronoussetting parameter.
Return values:
ESUCCESS:Operationsuccessful. EPERM:Parameter is unexpected value. EFAUT:Internal error is occured.

Definition at line 1546 of file scux_ioctl.c.

void SCUX_IoctlSetRoute ( const int_t  channel,
const scux_route_t  route 
)

Function Name: SCUX_IoctlSetRoute.

Set SCUX data transfer route.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]route:routeparameter.
Return values:
None.

Definition at line 1397 of file scux_ioctl.c.

void SCUX_IoctlSetSrcCfg ( const int_t  channel,
const scux_src_cfg_t *const   p_src_param 
)

Function Name: SCUX_IoctlSetSrcCfg.

Set SRC paramter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]*p_src_param:SRCparameter.
Return values:
None.

Definition at line 1698 of file scux_ioctl.c.

int_t SCUX_IoctlSetSsifCfg ( const scux_ssif_cfg_t *const   p_ssif_param )

Function Name: SCUX_IoctlSetSsifCfg.

Set SSIF parameter.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]p_ssif_param:SSIFparameter.
Return values:
ESUCCESS: Operation successful. EBADF : SSIF channel has already used on other SCUX channel. EPERM : Transfer parameter is unexpected. EFAULT: Internel error is occured.

Definition at line 2291 of file scux_ioctl.c.

int_t SCUX_IoctlSetStopMute ( const int_t  channel,
const uint32_t  audio_channel 
)

Function Name: SCUX_IoctlSetStopMute.

Stop mute.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]audio_channel:Audiochannel number.
Return values:
ESUCCESS:Operationsuccessful. EPERM:Parameter is unexpected value. EFAULT : Internal error is occured.

Definition at line 2053 of file scux_ioctl.c.

int_t SCUX_IoctlTransStart ( const int_t  channel )

Function Name: SCUX_IoctlTransStart.

SCUX transfer start.

Description:

Parameters:
[in]channel:SCUXchannel number.
[in]p_scux_addr_param:addressparameter.
Return values:
ESUCCESS: Operation successful. EACCES : DVU setup isn't carried out when using DVU. EACCES : MIX setup isn't carried out when using MIX. EACCES : SSIF setup isn't carried out when using SSIF. EACCES : SSIF channel is already used. EACCES : When use MIX, it is a setup which does not agree in a route setup. EBUSY : It has already transmitted. EMFILE : Allocate DMA ch for read is failed. EPERM : Transfer parameter is unexpected. EFAULT : Internal error is occured.

Definition at line 75 of file scux_ioctl.c.