sub_edge_config |
Top Previous Next |
Got to SUB-20 page |
Synopsis int sub_edge_config( sub_handle hndl, int set, int* get )
Configure EDGE module. Parameters •set - set will be used only if get == 0. EDGE lines EDG7..EDG0 are configured by two bits Ex1,Ex0 in set where x is 7..0. set bits have following interpretation:
MSB
•*get - Pointer to store current edge configuration read from SUB-20. If get is not zero function will read edge configuration otherwise it will set edge configuration Return value On success function returns 0. Otherwise error code. Example rc = sub_edge_config( hndl, 0, &edge_config ); /* Read Edge configuration */
/* EDG0 = 01B - Any change */ /* EDG1 = 01B - Any change */ /* EDG2 - 11B - Risinge edge */ /* EDG7..EDG3 not detected */ rc = sub_edge_config( hndl, 0x0035, 0 ); /* set = 0011.0101B */ See also |