I need to verify a ECDSA signature using the public key and curve type is secp256r1

kindly help me about the arguments to pass.First argument how to initialize the structure with ECDSA curve.

mbedtls_ecdsa_read_signature( &ctx_verify,
hash, sizeof( hash ),
sig, sig_len ) ) != 0 )