#define MGR_CMD_MASK 0x40000000 /* The MSB of the command code indicates that this is the completion of a
command */ #define MGR_CMD_MASK_ACK (MGR_CMD_MASK | 0x80000000)
/* Description: This command creates a new instance of a certain task IN[0]-TaskID.ThisisoneoftheXPU_CMD_MASK_YYYwhereXPUis theprocessoronwhichthetaskYYYwillbecreated OUT[0]-Taskhandle.Thishandleispassedalongwithcommandsto dispatchtotherightinstanceofthetask
ReturnCode - One of the ERR_SYS_... */ #define CX18_CREATE_TASK (MGR_CMD_MASK | 0x0001)
/* Description: This command destroys an instance of a task IN[0]-Taskhandle.Hanldeofthetasktodestroy
ReturnCode - One of the ERR_SYS_... */ #define CX18_DESTROY_TASK (MGR_CMD_MASK | 0x0002)
/* All commands for CPU have the following mask set */ #define CPU_CMD_MASK 0x20000000 #define CPU_CMD_MASK_DEBUG (CPU_CMD_MASK | 0x00000000) #define CPU_CMD_MASK_ACK (CPU_CMD_MASK | 0x80000000) #define CPU_CMD_MASK_CAPTURE (CPU_CMD_MASK | 0x00020000) #define CPU_CMD_MASK_TS (CPU_CMD_MASK | 0x00040000)
/* Description: Command APU to reset the AI
ReturnCode - ??? */ #define CX18_APU_RESETAI (APU_CMD_MASK | 0x05)
/* Description: This command indicates that a Memory Descriptor List has been filledwiththerequestedchanneltype IN[0]-Taskhandle.Handleofthetask IN[1]-OffsetoftheMDL_ACKfromthebeginningofthelocalDDR. IN[2]-NumberofCNXT_MDL_ACKstructuresinthearraypointedtobyIN[1]
ReturnCode - One of the ERR_DE_... */ #define CX18_EPU_DMA_DONE (EPU_CMD_MASK_DE | 0x0001)
/* Something interesting happened IN[0]-Avaluetolog IN[1]-AnoffsetofastringintheMiniMememory;
0/zero/NULL means "I have nothing to say" */ #define CX18_EPU_DEBUG (EPU_CMD_MASK_DEBUG | 0x0003)
/* Description: This command starts streaming with the set channel type IN[0]-Taskhandle.Handleofthetasktostart
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_CAPTURE_START (CPU_CMD_MASK_CAPTURE | 0x0002)
/* Description: This command stops streaming with the set channel type IN[0]-Taskhandle.Handleofthetasktostop IN[1]-0=stopatendofGOP,1=stopatendofframe(MPEGonly)
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_CAPTURE_STOP (CPU_CMD_MASK_CAPTURE | 0x0003)
/* Description: This command pauses streaming with the set channel type IN[0]-Taskhandle.Handleofthetasktopause
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_CAPTURE_PAUSE (CPU_CMD_MASK_CAPTURE | 0x0007)
/* Description: This command resumes streaming with the set channel type IN[0]-Taskhandle.Handleofthetasktoresume
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_CAPTURE_RESUME (CPU_CMD_MASK_CAPTURE | 0x0008)
/* Description: This command sets the channel type. This can only be done whenstopped. IN[0]-Taskhandle.Handleofthetasktostart IN[1]-ChannelType.SeeBelow.
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_CHANNEL_TYPE (CPU_CMD_MASK_CAPTURE + 1)
/* Description: Set stream output type IN[0]-taskhandle.Handleofthetasktostart IN[1]-type
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_STREAM_OUTPUT_TYPE (CPU_CMD_MASK_CAPTURE | 0x0012)
/* Description: Set video input resolution and frame rate IN[0]-taskhandle IN[1]-reserved IN[2]-reserved IN[3]-reserved IN[4]-reserved IN[5]-framerate,0-29.97f/s,1-25f/s
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_VIDEO_IN (CPU_CMD_MASK_CAPTURE | 0x0004)
/* Description: Set video frame rate IN[0]-taskhandle.Handleofthetasktostart IN[1]-videobitratemode IN[2]-videoaveragerate IN[3]-videopeakrate IN[4]-systemmuxrate
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_VIDEO_RATE (CPU_CMD_MASK_CAPTURE | 0x0005)
/* Description: Set video output resolution IN[0]-taskhandle IN[1]-horizontalsize IN[2]-verticalsize
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_VIDEO_RESOLUTION (CPU_CMD_MASK_CAPTURE | 0x0006)
/* Description: This command set filter parameters IN[0]-Taskhandle.Handleofthetask IN[1]-type,0-temporal,1-spatial,2-median IN[2]-mode,temporal/spatial:0-disable,1-static,2-dynamic median:0=disable,1=horizontal,2=vertical, 3=horizontal/vertical,4=diagonal IN[3]-strength,temporal0-31,spatial0-15
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_FILTER_PARAM (CPU_CMD_MASK_CAPTURE | 0x0009)
/* Description: This command set spatial filter type IN[0]-Taskhandle. IN[1]-lumatype:0=disable,1=1Dhorizontalonly,2=1Dverticalonly, 3=2DH/Vseparable,4=2Dsymmetricnon-separable IN[2]-chromatype:0-disable,1=1Dhorizontal
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_SPATIAL_FILTER_TYPE (CPU_CMD_MASK_CAPTURE | 0x000C)
/* Description: This command set coring levels for median filter IN[0]-Taskhandle. IN[1]-luma_high IN[2]-luma_low IN[3]-chroma_high IN[4]-chroma_low
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_MEDIAN_CORING (CPU_CMD_MASK_CAPTURE | 0x000E)
/* Description: This command set the picture type mask for index file IN[0]-Taskhandle(ignoredbyfirmware) IN[1]-0=disableindexfileoutput 1=outputIpicture 2=Ppicture 4=Bpicture
other = illegal */ #define CX18_CPU_SET_INDEXTABLE (CPU_CMD_MASK_CAPTURE | 0x0010)
/* Description: Set audio parameters IN[0]-taskhandle.Handleofthetasktostart IN[1]-audioparameter
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_AUDIO_PARAMETERS (CPU_CMD_MASK_CAPTURE | 0x0011)
/* Description: Set video mute IN[0]-taskhandle.Handleofthetasktostart IN[1]-bit31-24:muteYvalue bit23-16:muteUvalue bit15-8:muteVvalue bit0:1:mute,0:unmute
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_VIDEO_MUTE (CPU_CMD_MASK_CAPTURE | 0x0013)
/* Description: Set audio mute IN[0]-taskhandle.Handleofthetasktostart IN[1]-mute/unmute
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_AUDIO_MUTE (CPU_CMD_MASK_CAPTURE | 0x0014)
/* Description: Set stream output type IN[0]-taskhandle.Handleofthetasktostart IN[1]-subType SET_INITIAL_SCR1 SET_QUALITY_MODE2 SET_VIM_PROTECT_MODE3 SET_PTS_CORRECTION4 SET_USB_FLUSH_MODE5 SET_MERAQPAR_ENABLE6 SET_NAV_PACK_INSERTION7 SET_SCENE_CHANGE_ENABLE8 IN[2]-parameter1 IN[3]-parameter2
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_MISC_PARAMETERS (CPU_CMD_MASK_CAPTURE | 0x0015)
/* Description: Set capture line No. IN[0]-taskhandle.Handleofthetasktostart IN[1]-height1 IN[2]-height2
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_CAPTURE_LINE_NO (CPU_CMD_MASK_CAPTURE | 0x0017)
/* Description: Set copyright IN[0]-taskhandle.Handleofthetasktostart IN[1]-copyright
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_COPYRIGHT (CPU_CMD_MASK_CAPTURE | 0x0018)
/* Description: Set audio PID IN[0]-taskhandle.Handleofthetasktostart IN[1]-PID
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_AUDIO_PID (CPU_CMD_MASK_CAPTURE | 0x0019)
/* Description: Set video PID IN[0]-taskhandle.Handleofthetasktostart IN[1]-PID
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_VIDEO_PID (CPU_CMD_MASK_CAPTURE | 0x001A)
/* Description: Set Vertical Crop Line IN[0]-taskhandle.Handleofthetasktostart IN[1]-Line
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_VER_CROP_LINE (CPU_CMD_MASK_CAPTURE | 0x001B)
/* Description: Set COP structure IN[0]-taskhandle.Handleofthetasktostart IN[1]-M IN[2]-N
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_GOP_STRUCTURE (CPU_CMD_MASK_CAPTURE | 0x001C)
/* Description: Set Scene Change Detection IN[0]-taskhandle.Handleofthetasktostart IN[1]-scenechange
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_SCENE_CHANGE_DETECTION (CPU_CMD_MASK_CAPTURE | 0x001D)
/* Description: Set Aspect Ratio IN[0]-taskhandle.Handleofthetasktostart IN[1]-AspectRatio
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_ASPECT_RATIO (CPU_CMD_MASK_CAPTURE | 0x001E)
/* Description: Set Skip Input Frame IN[0]-taskhandle.Handleofthetasktostart IN[1]-skipinputframes
ReturnCode - One of the ERR_CAPTURE_... */ #define CX18_CPU_SET_SKIP_INPUT_FRAME (CPU_CMD_MASK_CAPTURE | 0x001F)
/* Description: Set the user data place holder IN[0]-typeofdata(0foruser) IN[1]-Stuffingperiod IN[2]-IDdatasizeinword(lessthan10)
IN[3] - Pointer to ID buffer */ #define CX18_CPU_SET_USERDATA_PLACE_HOLDER (CPU_CMD_MASK_CAPTURE | 0x0021)
/* Below is the list of commands related to the data exchange */ #define CPU_CMD_MASK_DE (CPU_CMD_MASK | 0x040000)
/* Description: This command provides the physical base address of the local DDRasviewedbyEPU IN[0]-PhysicaloffsetwhereEPUhasthelocalDDRmapped
ReturnCode - One of the ERR_DE_... */ #define CPU_CMD_DE_SetBase (CPU_CMD_MASK_DE | 0x0001)
/* Description: This command provides the offsets in the device memory where the2cx18_mdl_ackblocksreside IN[0]-Taskhandle.Handleofthetasktostart IN[1]-Offsetofthefirstcx18_mdl_ackfromthebeginningofthe localDDR. IN[2]-Offsetofthesecondcx18_mdl_ackfromthebeginningofthe localDDR.
ReturnCode - One of the ERR_DE_... */ #define CX18_CPU_DE_SET_MDL_ACK (CPU_CMD_MASK_DE | 0x0002)
/* Description: This command provides the offset to a Memory Descriptor List IN[0]-Taskhandle.Handleofthetasktostart IN[1]-OffsetoftheMDLfromthebeginningofthelocalDDR. IN[2]-Numberofcx18_mdl_entstructuresinthearraypointedtobyIN[1] IN[3]-BufferID IN[4]-Totalbufferlength
ReturnCode - One of the ERR_DE_... */ #define CX18_CPU_DE_SET_MDL (CPU_CMD_MASK_DE | 0x0005)
/* Description: This command requests return of all current Memory DescriptorListstothedriver IN[0]-Taskhandle.Handleofthetasktostart
ReturnCode - One of the ERR_DE_... */ #define CX18_CPU_DE_RELEASE_MDL (CPU_CMD_MASK_DE | 0x0006)
/* Description: This command signals the cpu that the dat buffer has been consumedandreadyforre-use. IN[0]-Taskhandle.Handleofthetask IN[1]-OffsetofthedatablockfromthebeginningofthelocalDDR. IN[2]-Numberofbytesinthedatablock
ReturnCode - One of the ERR_DE_... */ /* #define CX18_CPU_DE_RELEASE_BUFFER (CPU_CMD_MASK_DE | 0x0007) */
/* No Error / Success */ #define CNXT_OK 0x000000
/* Received unknown command */ #define CXERR_UNK_CMD 0x000001
/* First parameter in the command is invalid */ #define CXERR_INVALID_PARAM1 0x000002
/* Second parameter in the command is invalid */ #define CXERR_INVALID_PARAM2 0x000003
/* Device interface is not open/found */ #define CXERR_DEV_NOT_FOUND 0x000004
/* Requested function is not implemented/available */ #define CXERR_NOTSUPPORTED 0x000005
/* Invalid pointer is provided */ #define CXERR_BADPTR 0x000006
/* Unable to allocate memory */ #define CXERR_NOMEM 0x000007
/* Object/Link not found */ #define CXERR_LINK 0x000008
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.