Upon written request of the defendant, the prosecuting attorney shall permit the defendant to inspect and copy or photograph books, papers, documents, photographs, tangible objects, buildings, or places, or copies or portions thereof, which are within the possession, custody, or control of the prosecuting attorney and which are material to the preparation of his defense or intended for use by the prosecuting attorney as evidence in chief at the trial, or were obtained from or belong to the defendant.
SDCL 23A-13-3