master/pdo_list.c
branchstable-1.5
changeset 2522 ec403cf308eb
parent 2421 bc2d4bf9cbe5
equal deleted inserted replaced
2521:3d68bb0047a1 2522:ec403cf308eb
   235 }
   235 }
   236 
   236 
   237 /*****************************************************************************/
   237 /*****************************************************************************/
   238 
   238 
   239 /** Finds a PDO with the given index.
   239 /** Finds a PDO with the given index.
       
   240  *
       
   241  * \return Search result, or NULL.
   240  */
   242  */
   241 ec_pdo_t *ec_pdo_list_find_pdo(
   243 ec_pdo_t *ec_pdo_list_find_pdo(
   242         const ec_pdo_list_t *pl, /**< PDO list. */
   244         const ec_pdo_list_t *pl, /**< PDO list. */
   243         uint16_t index /**< PDO index. */
   245         uint16_t index /**< PDO index. */
   244         )
   246         )
   255 }
   257 }
   256 
   258 
   257 /*****************************************************************************/
   259 /*****************************************************************************/
   258 
   260 
   259 /** Finds a PDO with the given index and returns a const pointer.
   261 /** Finds a PDO with the given index and returns a const pointer.
       
   262  *
       
   263  * \return Search result, or NULL.
   260  */
   264  */
   261 const ec_pdo_t *ec_pdo_list_find_pdo_const(
   265 const ec_pdo_t *ec_pdo_list_find_pdo_const(
   262         const ec_pdo_list_t *pl, /**< PDO list. */
   266         const ec_pdo_list_t *pl, /**< PDO list. */
   263         uint16_t index /**< PDO index. */
   267         uint16_t index /**< PDO index. */
   264         )
   268         )
   277 /*****************************************************************************/
   281 /*****************************************************************************/
   278 
   282 
   279 /** Finds a PDO via its position in the list.
   283 /** Finds a PDO via its position in the list.
   280  *
   284  *
   281  * Const version.
   285  * Const version.
       
   286  *
       
   287  * \return Zero on success, otherwise a negative error code.
   282  */
   288  */
   283 const ec_pdo_t *ec_pdo_list_find_pdo_by_pos_const(
   289 const ec_pdo_t *ec_pdo_list_find_pdo_by_pos_const(
   284         const ec_pdo_list_t *pl, /**< PDO list. */
   290         const ec_pdo_list_t *pl, /**< PDO list. */
   285         unsigned int pos /**< Position in the list. */
   291         unsigned int pos /**< Position in the list. */
   286         )
   292         )